Skip to contentSkip to conversation

mfd: axp20x: Fix axp288 writable-ranges

PATCH Applied Hans de Goede 2 participants 2 messages Mar 29, 2023 – Mar 30, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: axp20x: Fix axp288 writable-ranges

Register AXP288_POWER_REASON is writable and needs to be written to reset the reset- / power-on-reason bits.

Add it to the axp288 writable-ranges so that the extcon-axp288 driver can properly clear the reset- / power-on-reason bits.

---
 drivers/mfd/axp20x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/axp20x.c +1 -0
index 01a6bbb6d266..7720ac15c7d4 100644
@@ -119,6 +119,7 @@ static const struct regmap_access_table axp22x_volatile_table = {
 
 /* AXP288 ranges are shared with the AXP803, as they cover the same range */
 static const struct regmap_range axp288_writeable_ranges[] = {
+	regmap_reg_range(AXP288_POWER_REASON, AXP288_POWER_REASON),
 	regmap_reg_range(AXP20X_DATACACHE(0), AXP20X_IRQ6_STATE),
 	regmap_reg_range(AXP20X_DCDC_MODE, AXP288_FG_TUNE5),
 };
Signature · 1 line
2.39.1
maintainer Applied
#1 lore raw
Quoted 10 lines · Hans de Goede

Register AXP288_POWER_REASON is writable and needs to be written to reset the reset- / power-on-reason bits.

Add it to the axp288 writable-ranges so that the extcon-axp288 driver can properly clear the reset- / power-on-reason bits.

---
 drivers/mfd/axp20x.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

--
Lee Jones [李琼斯]