Skip to content

Commit c925bb8

Browse files
marcusfolkessonlag-linaro
authored andcommitted
mfd: da9052: Store result from fault_log
Other sub-components (da9052-wdt) could use the result to determine reboot cause. Expose the result by make it part of the da9052 structure. Signed-off-by: Marcus Folkesson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 70e997e commit c925bb8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/mfd/da9052-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ static int da9052_clear_fault_log(struct da9052 *da9052)
585585
"Cannot reset FAULT_LOG values %d\n", ret);
586586
}
587587

588+
da9052->fault_log = fault_log;
588589
return ret;
589590
}
590591

include/linux/mfd/da9052/da9052.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ struct da9052 {
9393

9494
int chip_irq;
9595

96+
int fault_log;
97+
9698
/* SOC I/O transfer related fixes for DA9052/53 */
9799
int (*fix_io) (struct da9052 *da9052, unsigned char reg);
98100
};

0 commit comments

Comments
 (0)