From: Hans de Goede Date: Wed, 29 Mar 2023 20:55:44 +0000 (+0200) Subject: mfd: axp20x: Fix axp288 writable-ranges X-Git-Tag: v6.6.7~2924^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2405fbfb384ef39e9560d76d3f6e4c90519f90aa;p=platform%2Fkernel%2Flinux-starfive.git 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. Signed-off-by: Hans de Goede Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20230329205544.1051393-1-hdegoede@redhat.com --- diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 01a6bbb..7720ac1 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -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), };