On Mon, Jan 29, 2024 at 02:03:14PM +0100, Sebastian Reichel wrote:
Hi,
On Sun, Jan 28, 2024 at 11:10:35AM -0500, Sasha Levin wrote:
From: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx>
[ Upstream commit b43f7ddc2b7a5a90447d96cb4d3c6d142dd4a810 ]
Currently, a not-yet-entirely-initialized battmgr (e.g. with pd-mapper
not having yet started or ADSP not being up etc.) results in a couple of
zombie power supply devices hanging around.
This is particularly noticeable when trying to suspend the device (even
s2idle): the PSY-internal thermal zone is inaccessible and returns
-ENODEV, which causes log spam.
Register the power supplies only after we received some notification
indicating battmgr is ready to take off.
Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx>
Tested-by: Luca Weiss <luca.weiss@xxxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20231218-topic-battmgr_fixture_attempt-v1-1-6145745f34fe@xxxxxxxxxx
Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
Please drop it, I have a patch queued reverting this patch.
Dropped, thanks!
--
Thanks,
Sasha