thermal: tegra-bpmp: Handle errors in BPMP response
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 15 Sep 2021 08:55:13 +0000 (11:55 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 8 Mar 2022 20:26:09 +0000 (21:26 +0100)
commit1a7c9213d5f9bfd5e1bf4f87df1abc166ce48ffc
tree51062fcf5cd64444c77b20b18505eef5e85416a1
parent3a9abd6cece8321be821bf84406a94e3c483f31e
thermal: tegra-bpmp: Handle errors in BPMP response

The return value from tegra_bpmp_transfer indicates the success or
failure of the IPC transaction with BPMP. If the transaction
succeeded, we also need to check the actual command's result code.
Add code to do this.

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