Commit c7b7c609 authored by Rob Clark's avatar Rob Clark Committed by Andy Gross

qcom-scm: fix endianess issue in __qcom_scm_is_call_available

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarAndy Gross <agross@codeaurora.org>
parent a208ca98
...@@ -480,15 +480,15 @@ void __qcom_scm_cpu_power_down(u32 flags) ...@@ -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 __qcom_scm_is_call_available(u32 svc_id, u32 cmd_id)
{ {
int ret; int ret;
u32 svc_cmd = (svc_id << 10) | cmd_id; __le32 svc_cmd = cpu_to_le32((svc_id << 10) | cmd_id);
u32 ret_val = 0; __le32 ret_val = 0;
ret = qcom_scm_call(QCOM_SCM_SVC_INFO, QCOM_IS_CALL_AVAIL_CMD, &svc_cmd, ret = qcom_scm_call(QCOM_SCM_SVC_INFO, QCOM_IS_CALL_AVAIL_CMD, &svc_cmd,
sizeof(svc_cmd), &ret_val, sizeof(ret_val)); sizeof(svc_cmd), &ret_val, sizeof(ret_val));
if (ret) if (ret)
return 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) int __qcom_scm_hdcp_req(struct qcom_scm_hdcp_req *req, u32 req_cnt, u32 *resp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment