diff options
author | Marcus Folkesson <marcus.folkesson@gmail.com> | 2024-12-10 16:24:40 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-12-17 13:17:25 +0000 |
commit | c925bb8853dae5cb25e7108298e905b55301bbff (patch) | |
tree | 47e7b8fd503126aee562ee7f53d72fc71a0aaded | |
parent | 70e997e0107e5ed85c1a3ef2adfccbe351c29d71 (diff) |
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>
-rw-r--r-- | drivers/mfd/da9052-core.c | 1 | ||||
-rw-r--r-- | include/linux/mfd/da9052/da9052.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/da9052-core.c b/drivers/mfd/da9052-core.c index dc85801b9fa0..b06cd518413b 100644 --- a/drivers/mfd/da9052-core.c +++ b/drivers/mfd/da9052-core.c @@ -585,6 +585,7 @@ static int da9052_clear_fault_log(struct da9052 *da9052) "Cannot reset FAULT_LOG values %d\n", ret); } + da9052->fault_log = fault_log; return ret; } diff --git a/include/linux/mfd/da9052/da9052.h b/include/linux/mfd/da9052/da9052.h index 76feb3a7066d..9cb2fc2938ce 100644 --- a/include/linux/mfd/da9052/da9052.h +++ b/include/linux/mfd/da9052/da9052.h @@ -93,6 +93,8 @@ struct da9052 { int chip_irq; + int fault_log; + /* SOC I/O transfer related fixes for DA9052/53 */ int (*fix_io) (struct da9052 *da9052, unsigned char reg); }; |