Re: [PATCH] power: supply: qcom_battmgr: Ignore extra __le32 in info payload

From: Johan Hovold
Date: Fri Jul 12 2024 - 07:07:38 EST


On Fri, Jul 12, 2024 at 12:00:03PM +0200, Stephan Gerhold wrote:
> Some newer ADSP firmware versions on X1E80100 report an extra __le32 at the
> end of the battery information request payload, causing qcom_battmgr to
> fail to initialize. Adjust the check to ignore the extra field in the info
> payload so we can support both old and newer firmware versions.
>
> Tested-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@xxxxxxxxxx>

Can confirm that the old fw still works (didn't really look at the
patch):

Tested-by: Johan Hovold <johan+linaro@xxxxxxxxxx>

Johan