Skip to content

Commit

Permalink
mfd: da9052: Store result from fault_log
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcus Folkesson authored and Lee Jones committed Dec 17, 2024
1 parent 70e997e commit c925bb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/da9052-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions include/linux/mfd/da9052/da9052.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit c925bb8

Please sign in to comment.