Re: [PATCH] power: supply: qcom_battmgr: return EAGAIN when firmware service is not up

From: Sebastian Reichel
Date: Fri Jul 26 2024 - 18:39:45 EST



On Mon, 15 Jul 2024 14:57:06 +0200, Neil Armstrong wrote:
> The driver returns -ENODEV when the firmware battmrg service hasn't
> started yet, while per-se -ENODEV is fine, we usually use -EAGAIN to
> tell the user to retry again later. And the power supply core uses
> -EGAIN when the device isn't initialized, let's use the same return.
>
> This notably causes an infinite spam of:
> thermal thermal_zoneXX: failed to read out thermal zone (-19)
> because the thermal core doesn't understand -ENODEV, but only
> considers -EAGAIN as a non-fatal error.
>
> [...]

Applied, thanks!

[1/1] power: supply: qcom_battmgr: return EAGAIN when firmware service is not up
commit: bf9d5cb588755ee41ac12a8976dccf44ae18281b

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>