]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: qcom: pdr: Fixup array type of get_domain_list_resp message
authorSibi Sankar <sibis@codeaurora.org>
Mon, 14 Sep 2020 14:58:07 +0000 (20:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:13 +0000 (10:08 +0100)
commit64ca77e846b0c6e1d5ce6285f73dedbe1bededbc
tree1ed35f67f4bbfc633fb5f43a9a3cd2726454e371
parent3ca890f0e5d2f8c555741c1e69ed07cafd774de4
soc: qcom: pdr: Fixup array type of get_domain_list_resp message

[ Upstream commit 7a366707bb6a93baeb1a9ef46c4b9c875e0132d6 ]

The array type of get_domain_list_resp is incorrectly marked as NO_ARRAY.
Due to which the following error was observed when using pdr helpers with
the downstream proprietary pd-mapper. Fix this up by marking it as
VAR_LEN_ARRAY instead.

Err logs:
qmi_decode_struct_elem: Fault in decoding: dl(2), db(27), tl(160), i(1), el(1)
failed to decode incoming message
PDR: tms/servreg get domain list txn wait failed: -14
PDR: service lookup for tms/servreg failed: -14

Tested-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers")
Reported-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200914145807.1224-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/qcom/pdr_internal.h