Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20241210-da9052-wdt-v2-1-95a5756e9ac8@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Marcus Folkesson and committed by
Lee Jones
c925bb88 70e997e0

+3
+1
drivers/mfd/da9052-core.c
··· 585 585 "Cannot reset FAULT_LOG values %d\n", ret); 586 586 } 587 587 588 + da9052->fault_log = fault_log; 588 589 return ret; 589 590 } 590 591
+2
include/linux/mfd/da9052/da9052.h
··· 93 93 94 94 int chip_irq; 95 95 96 + int fault_log; 97 + 96 98 /* SOC I/O transfer related fixes for DA9052/53 */ 97 99 int (*fix_io) (struct da9052 *da9052, unsigned char reg); 98 100 };