Skip to content

Commit

Permalink
qcom-scm: fix endianess issue in __qcom_scm_is_call_available
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Andy Gross <[email protected]>
  • Loading branch information
robclark authored and Andy Gross committed Oct 14, 2015
1 parent a208ca9 commit c7b7c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/firmware/qcom_scm-32.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,15 @@ void __qcom_scm_cpu_power_down(u32 flags)
int __qcom_scm_is_call_available(u32 svc_id, u32 cmd_id)
{
int ret;
u32 svc_cmd = (svc_id << 10) | cmd_id;
u32 ret_val = 0;
__le32 svc_cmd = cpu_to_le32((svc_id << 10) | cmd_id);
__le32 ret_val = 0;

ret = qcom_scm_call(QCOM_SCM_SVC_INFO, QCOM_IS_CALL_AVAIL_CMD, &svc_cmd,
sizeof(svc_cmd), &ret_val, sizeof(ret_val));
if (ret)
return ret;

return ret_val;
return le32_to_cpu(ret_val);
}

int __qcom_scm_hdcp_req(struct qcom_scm_hdcp_req *req, u32 req_cnt, u32 *resp)
Expand Down

0 comments on commit c7b7c60

Please sign in to comment.