Skip to content

Commit 7a36670

Browse files
Sibi Sankarandersson
authored andcommitted
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: fbe639b ("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>
1 parent 9123e3a commit 7a36670

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/qcom/pdr_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ struct qmi_elem_info servreg_get_domain_list_resp_ei[] = {
185185
.data_type = QMI_STRUCT,
186186
.elem_len = SERVREG_DOMAIN_LIST_LENGTH,
187187
.elem_size = sizeof(struct servreg_location_entry),
188-
.array_type = NO_ARRAY,
188+
.array_type = VAR_LEN_ARRAY,
189189
.tlv_type = 0x12,
190190
.offset = offsetof(struct servreg_get_domain_list_resp,
191191
domain_list),

0 commit comments

Comments
 (0)