Re: (subset) [PATCH] mfd: axp20x: preserve other control bits when powering off
From: Lee Jones
Date: Thu Jun 18 2026 - 07:03:21 EST
On Thu, 11 Jun 2026 18:46:29 +0300, Oleg Proshkin wrote:
> axp20x_power_off() triggers shutdown by writing AXP20X_OFF (BIT(7)) to
> the power-off control register with regmap_write(), which rewrites the
> whole register and clears other control bits in it.
>
> On the AXP221/AXP223 (and the register-compatible AXP228) - that
> register also holds the CHGLED auto-control bit.
> Clearing it during an orderly shutdown disables the hardware charge
> indicator, so the charge LED stays dark while the board is powered off
> and charging. Other variants keep unrelated configuration in the same
> register too.
>
> [...]
Applied, thanks!
[1/1] mfd: axp20x: preserve other control bits when powering off
commit: c5fda2d006d3f77d3788823c4f875c745e355451
--
Lee Jones [李琼斯]