882-v6.3-mfd-axp20x-Fix-axp288-writable-ranges.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From 2405fbfb384ef39e9560d76d3f6e4c90519f90aa Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <[email protected]>
  3. Date: Wed, 29 Mar 2023 22:55:44 +0200
  4. Subject: [PATCH] mfd: axp20x: Fix axp288 writable-ranges
  5. Register AXP288_POWER_REASON is writable and needs to be written
  6. to reset the reset- / power-on-reason bits.
  7. Add it to the axp288 writable-ranges so that the extcon-axp288
  8. driver can properly clear the reset- / power-on-reason bits.
  9. Signed-off-by: Hans de Goede <[email protected]>
  10. Signed-off-by: Lee Jones <[email protected]>
  11. Link: https://lore.kernel.org/r/[email protected]
  12. ---
  13. drivers/mfd/axp20x.c | 1 +
  14. 1 file changed, 1 insertion(+)
  15. --- a/drivers/mfd/axp20x.c
  16. +++ b/drivers/mfd/axp20x.c
  17. @@ -119,6 +119,7 @@ static const struct regmap_access_table
  18. /* AXP288 ranges are shared with the AXP803, as they cover the same range */
  19. static const struct regmap_range axp288_writeable_ranges[] = {
  20. + regmap_reg_range(AXP288_POWER_REASON, AXP288_POWER_REASON),
  21. regmap_reg_range(AXP20X_DATACACHE(0), AXP20X_IRQ6_STATE),
  22. regmap_reg_range(AXP20X_DCDC_MODE, AXP288_FG_TUNE5),
  23. };