]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: Ratelimit no data debug output
authorMarek Vasut <marex@denx.de>
Sun, 5 Mar 2023 20:52:26 +0000 (21:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 13:44:09 +0000 (15:44 +0200)
commitd26edc403c0a7fc6a56a221c50e7e47e69f235a9
tree5d1c72fc85ec24cf08165a64e11c726cb90f3e33
parentaf44b2ddfc08c59fc5d883d0634bec698baf4249
power: supply: Ratelimit no data debug output

[ Upstream commit 155c45a25679f571c2ae57d10db843a9dfc63430 ]

Reduce the amount of output this dev_dbg() statement emits into logs,
otherwise if system software polls the sysfs entry for data and keeps
getting -ENODATA, it could end up filling the logs up.

This does in fact make systemd journald choke, since during boot the
sysfs power supply entries are polled and if journald starts at the
same time, the journal is just being repeatedly filled up, and the
system stops on trying to start journald without booting any further.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/power_supply_sysfs.c