thermal/drivers/tegra-bpmp: Check if BPMP supports trip points
authorMikko Perttunen <mperttunen@nvidia.com>
Tue, 29 Nov 2022 15:39:14 +0000 (17:39 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 22 Aug 2023 17:10:28 +0000 (19:10 +0200)
commit1ef5a9f61457b921158ef03f3a2b3e789b41be9f
tree046c2c2a4e7ceb4cd27923705468789fe2f9743a
parent72684d99a854e3f78568a895ebf5365f646aa869
thermal/drivers/tegra-bpmp: Check if BPMP supports trip points

Check if BPMP supports thermal trip points, and if not,
do not expose the .set_trips callback to the thermal core
framework. This can happen in virtualized environments
where asynchronous communication with VM BPMP drivers is not
available.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20221129153914.2699041-1-cyndis@kapsi.fi
drivers/thermal/tegra/tegra-bpmp-thermal.c