]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
firmware: tegra: Propagate error code to caller
authorTimo Alho <talho@nvidia.com>
Thu, 7 Sep 2017 09:31:01 +0000 (12:31 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 17 Oct 2017 10:22:00 +0000 (12:22 +0200)
commit370d010f0ef09db7ab157a6b5d6d9a737b148f2a
tree85d29bab0e81e7034d093e14c205f36a855ffc13
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
firmware: tegra: Propagate error code to caller

Response messages from Tegra BPMP firmware contain an error return code
as the first word of payload. The error code is used to indicate
incorrectly formatted request message or use of non-existing resource
(clk, reset, powergate) identifier. Current implementation of
tegra_bpmp_transfer() ignores this code and does not pass it to caller.
Fix this by adding an extra struct member to tegra_bpmp_message and
populate that with return code.

Signed-off-by: Timo Alho <talho@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/firmware/tegra/bpmp.c
include/soc/tegra/bpmp.h