summaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorTimo Alho <talho@nvidia.com>2017-09-07 12:31:01 +0300
committerThierry Reding <treding@nvidia.com>2017-10-17 12:22:00 +0200
commit370d010f0ef09db7ab157a6b5d6d9a737b148f2a (patch)
tree85d29bab0e81e7034d093e14c205f36a855ffc13 /include/soc
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
downloadlinux-370d010f0ef09db7ab157a6b5d6d9a737b148f2a.tar.gz
linux-370d010f0ef09db7ab157a6b5d6d9a737b148f2a.tar.bz2
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')
-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;
};