Skip to content

Commit 2405fbf

Browse files
jwrdegoedelag-linaro
authored andcommitted
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 <hdegoede@redhat.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230329205544.1051393-1-hdegoede@redhat.com
1 parent 66c8d55 commit 2405fbf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mfd/axp20x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ static const struct regmap_access_table axp22x_volatile_table = {
119119

120120
/* AXP288 ranges are shared with the AXP803, as they cover the same range */
121121
static const struct regmap_range axp288_writeable_ranges[] = {
122+
regmap_reg_range(AXP288_POWER_REASON, AXP288_POWER_REASON),
122123
regmap_reg_range(AXP20X_DATACACHE(0), AXP20X_IRQ6_STATE),
123124
regmap_reg_range(AXP20X_DCDC_MODE, AXP288_FG_TUNE5),
124125
};

0 commit comments

Comments
 (0)