diff options
| author | Neil Armstrong <[email protected]> | 2024-07-15 12:57:06 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2024-07-26 22:17:31 +0000 |
| commit | bf9d5cb588755ee41ac12a8976dccf44ae18281b (patch) | |
| tree | 0d7457e8bf33ec804f9fcfb173e8a0f300d437f6 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | power: supply: axp288_charger: Round constant_charge_voltage writes down (diff) | |
| download | kernel-bf9d5cb588755ee41ac12a8976dccf44ae18281b.tar.gz kernel-bf9d5cb588755ee41ac12a8976dccf44ae18281b.zip | |
power: supply: qcom_battmgr: return EAGAIN when firmware service is not up
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.
While it didn't appear until now, commit [1] fixes thermal core
and no more ignores thermal zones returning an error at first
temperature update.
[1] 5725f40698b9 ("thermal: core: Call monitor_thermal_zone() if zone temperature is invalid")
Link: https://lore.kernel.org/all/[email protected]/
Cc: [email protected]
Fixes: 29e8142b5623 ("power: supply: Introduce Qualcomm PMIC GLINK power supply")
Signed-off-by: Neil Armstrong <[email protected]>
Tested-by: Stephan Gerhold <[email protected]>
Reviewed-by: Stephan Gerhold <[email protected]>
Link: https://lore.kernel.org/r/20240715-topic-sm8x50-upstream-fix-battmgr-temp-tz-warn-v1-1-16e842ccead7@linaro.org
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
