memory: tegra186-emc: Handle errors in BPMP response
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 15 Sep 2021 08:55:15 +0000 (11:55 +0300)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 20 Sep 2021 08:33:28 +0000 (10:33 +0200)
commit13324edbe9269e6fbca4d0f5146b18ef8478c958
treed9f20cecf7e1f11ca315d3e257343b259563fa16
parent77b14c9d05bd72d6a3f11b4982591d6cb0090ffe
memory: tegra186-emc: 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>
Link: https://lore.kernel.org/r/20210915085517.1669675-3-mperttunen@nvidia.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra186-emc.c