Home
last modified time | relevance | path

Searched hist:dc91c3b6 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/mfd/
H A Daxp20x.cdc91c3b6 Sat Jan 04 19:24:08 CST 2020 Samuel Holland <samuel@sholland.org> mfd: axp20x: Mark AXP20X_VBUS_IPSOUT_MGMT as volatile

On AXP288 and newer PMICs, bit 7 of AXP20X_VBUS_IPSOUT_MGMT can be set
to prevent using the VBUS input. However, when the VBUS unplugged and
plugged back in, the bit automatically resets to zero.

We need to set the register as volatile to prevent regmap from caching
that bit. Otherwise, regcache will think the bit is already set and not
write the register.

Fixes: cd53216625a0 ("mfd: axp20x: Fix axp288 volatile ranges")
Cc: stable@vger.kernel.org
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
dc91c3b6 Sat Jan 04 19:24:08 CST 2020 Samuel Holland <samuel@sholland.org> mfd: axp20x: Mark AXP20X_VBUS_IPSOUT_MGMT as volatile

On AXP288 and newer PMICs, bit 7 of AXP20X_VBUS_IPSOUT_MGMT can be set
to prevent using the VBUS input. However, when the VBUS unplugged and
plugged back in, the bit automatically resets to zero.

We need to set the register as volatile to prevent regmap from caching
that bit. Otherwise, regcache will think the bit is already set and not
write the register.

Fixes: cd53216625a0 ("mfd: axp20x: Fix axp288 volatile ranges")
Cc: stable@vger.kernel.org
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>