cpufreq: tegra186/tegra194: Handle errors in BPMP response
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 15 Sep 2021 08:55:16 +0000 (11:55 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 4 Oct 2021 07:01:36 +0000 (12:31 +0530)
commitc2ace21f937a0c7a296d233b4441b99b66579bda
treedd1513bdcac5837479778bc8dc3b3aea7879754e
parent6065a672679f0502ede024a03db82c03534a5e00
cpufreq: tegra186/tegra194: 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.

While at it, explicitly handle missing CPU clusters, which can
occur on floorswept chips. This worked before as well, but
possibly only by accident.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/tegra186-cpufreq.c
drivers/cpufreq/tegra194-cpufreq.c