diff options
author | Rob Clark <robdclark@gmail.com> | 2015-09-29 15:48:53 -0400 |
---|---|---|
committer | Andy Gross <agross@codeaurora.org> | 2015-10-14 15:51:21 -0400 |
commit | c7b7c609493da428bd5af19d522b14a912b8ea3e (patch) | |
tree | 3d4a08b328e976f170e7ba4fdcbac27ceefc811d | |
parent | a208ca98ff63e5c94d03810bc80fee9b02fe9972 (diff) |
qcom-scm: fix endianess issue in __qcom_scm_is_call_available
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
-rw-r--r-- | drivers/firmware/qcom_scm-32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firmware/qcom_scm-32.c b/drivers/firmware/qcom_scm-32.c index 29e6850665eb..0883292f640f 100644 --- a/drivers/firmware/qcom_scm-32.c +++ b/drivers/firmware/qcom_scm-32.c | |||
@@ -480,15 +480,15 @@ void __qcom_scm_cpu_power_down(u32 flags) | |||
480 | int __qcom_scm_is_call_available(u32 svc_id, u32 cmd_id) | 480 | int __qcom_scm_is_call_available(u32 svc_id, u32 cmd_id) |
481 | { | 481 | { |
482 | int ret; | 482 | int ret; |
483 | u32 svc_cmd = (svc_id << 10) | cmd_id; | 483 | __le32 svc_cmd = cpu_to_le32((svc_id << 10) | cmd_id); |
484 | u32 ret_val = 0; | 484 | __le32 ret_val = 0; |
485 | 485 | ||
486 | ret = qcom_scm_call(QCOM_SCM_SVC_INFO, QCOM_IS_CALL_AVAIL_CMD, &svc_cmd, | 486 | ret = qcom_scm_call(QCOM_SCM_SVC_INFO, QCOM_IS_CALL_AVAIL_CMD, &svc_cmd, |
487 | sizeof(svc_cmd), &ret_val, sizeof(ret_val)); | 487 | sizeof(svc_cmd), &ret_val, sizeof(ret_val)); |
488 | if (ret) | 488 | if (ret) |
489 | return ret; | 489 | return ret; |
490 | 490 | ||
491 | return ret_val; | 491 | return le32_to_cpu(ret_val); |
492 | } | 492 | } |
493 | 493 | ||
494 | int __qcom_scm_hdcp_req(struct qcom_scm_hdcp_req *req, u32 req_cnt, u32 *resp) | 494 | int __qcom_scm_hdcp_req(struct qcom_scm_hdcp_req *req, u32 req_cnt, u32 *resp) |