Skip to content

Conversation

@LXQUALCOMM
Copy link

FROMLIST: soc: qcom: qmi: Print error codes in failure paths
Few error paths in the qmi_interface module log a failure message but
do not include the actual error code. Include the error value in the log
so debugging failures becomes easier.

Signed-off-by: Mukesh Ojha [email protected]
Signed-off-by: Xin Liu [email protected]

FROMLIST: soc: qcom: pd-mapper: Fix element length in servreg_loc_pfr_req_ei
It looks element length declared in servreg_loc_pfr_req_ei for reason
not matching servreg_loc_pfr_req's reason field due which we could
observe decoding error on PD crash.

qmi_decode_string_elem: String len 81 >= Max Len 65

Fix this by matching with servreg_loc_pfr_req's reason field.

Fixes: 1ebcde0 ("soc: qcom: add pd-mapper implementation")
Signed-off-by: Mukesh Ojha [email protected]
Signed-off-by: Xin Liu [email protected]

…_req_ei

It looks element length declared in servreg_loc_pfr_req_ei for reason
not matching servreg_loc_pfr_req's reason field due which we could
observe decoding error on PD crash.

  qmi_decode_string_elem: String len 81 >= Max Len 65

Fix this by matching with servreg_loc_pfr_req's reason field.

Cc: [email protected]
Fixes: 1ebcde0 ("soc: qcom: add pd-mapper implementation")
Reviewed-by: Dmitry Baryshkov <[email protected]>
Co-developed-by: Gokul Krishnakumar <[email protected]>
Signed-off-by: Gokul Krishnakumar <[email protected]>
Signed-off-by: Mukesh Ojha <[email protected]>
Signed-off-by: Xin Liu <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Few error paths in the qmi_interface module log a failure message but
do not include the actual error code. Include the error value in the log
so debugging failures becomes easier.

Reviewed-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Mukesh Ojha <[email protected]>
Signed-off-by: Xin Liu <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants