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)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 14 Sep 2020 23:53:29 +0000 (23:53 +0000)
commit7a366707bb6a93baeb1a9ef46c4b9c875e0132d6
treeea56502bb3c947801436e3ebf703fe56507b6e33
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
soc: qcom: pdr: Fixup array type of get_domain_list_resp message

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>
drivers/soc/qcom/pdr_internal.h