Re: [PATCH 1/5] power: supply: axp20x_battery: Fix fault handling for AXP717

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 1, 2025 at 7:17 AM Chris Morgan <macroalpha82@xxxxxxxxx> wrote:
>
> From: Chris Morgan <macromorgan@xxxxxxxxxxx>
>
> Correct the fault handling for the AXP717 by changing the i2c write
> from regmap_update_bits() to regmap_write_bits(). The update bits
> function does not work properly on a RW1C register where we must
> write a 1 back to an existing register to clear it.
>
> Additionally, as part of this testing I confirmed the behavior of
> errors reappearing, so remove comment about assumptions.
>
> Fixes: 6625767049c2 ("power: supply: axp20x_battery: add support for AXP717")
> Signed-off-by: Chris Morgan <macromorgan@xxxxxxxxxxx>

Reviewed-by: Chen-Yu Tsai <wens@xxxxxxxx>





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux