summaryrefslogtreecommitdiffstats
path: root/include/soc/tegra
diff options
context:
space:
mode:
authorTimo Alho2017-09-07 11:31:01 +0200
committerThierry Reding2017-10-17 12:22:00 +0200
commit370d010f0ef09db7ab157a6b5d6d9a737b148f2a (patch)
tree85d29bab0e81e7034d093e14c205f36a855ffc13 /include/soc/tegra
parentLinux 4.14-rc1 (diff)
downloadkernel-qcow2-linux-370d010f0ef09db7ab157a6b5d6d9a737b148f2a.tar.gz
kernel-qcow2-linux-370d010f0ef09db7ab157a6b5d6d9a737b148f2a.tar.xz
kernel-qcow2-linux-370d010f0ef09db7ab157a6b5d6d9a737b148f2a.zip
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>
Diffstat (limited to 'include/soc/tegra')
-rw-r--r--include/soc/tegra/bpmp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/tegra/bpmp.h b/include/soc/tegra/bpmp.h
index 9ba65222bd3f..57519f4c126a 100644
--- a/include/soc/tegra/bpmp.h
+++ b/include/soc/tegra/bpmp.h
@@ -110,6 +110,7 @@ struct tegra_bpmp_message {
struct {
void *data;
size_t size;
+ int ret;
} rx;
};