]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6c324a4178d80939acdb7262cff0cc649eba41a
treedd1513bdcac5837479778bc8dc3b3aea7879754e
parentfdc210dfc7b488da0c2b25a9b93029c9de4ac7da
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