]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal/of: Assume polling-delay(-passive) 0 when absent
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 25 Jan 2024 12:11:16 +0000 (13:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:39 +0000 (13:07 +0200)
commitd009236a37ae45ef113aa4eeede7ed63f0f6fbc1
tree8a57ec340cb89c10a19c03b95f3e0ea9912829e9
parent6712b758698bc3e4727cb028ade41385c9cfba87
thermal/of: Assume polling-delay(-passive) 0 when absent

[ Upstream commit 488164006a281986d95abbc4b26e340c19c4c85b ]

Currently, thermal zones associated with providers that have interrupts
for signaling hot/critical trips are required to set a polling-delay
of 0 to indicate no polling. This feels a bit backwards.

Change the code such that "no polling delay" also means "no polling".

Suggested-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240125-topic-thermal-v1-2-3c9d4dced138@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/thermal_of.c