125-regulator-qcom-rpm-Add-missing-state-flag-in-call-to.patch 953 B

12345678910111213141516171819202122232425
  1. From 803926825fa4db007437f76654e3e63bafb9b906 Mon Sep 17 00:00:00 2001
  2. From: Bjorn Andersson <bjorn.andersson@sonymobile.com>
  3. Date: Wed, 26 Nov 2014 13:51:01 -0800
  4. Subject: [PATCH] regulator: qcom-rpm: Add missing state flag in call to RPM
  5. This adds the missing state parameter to the call down to the RPM. This
  6. is currently hard coded to the active state, as that's all we're
  7. supporting at this moment.
  8. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
  9. Signed-off-by: Lee Jones <lee.jones@linaro.org>
  10. ---
  11. drivers/regulator/qcom_rpm-regulator.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. --- a/drivers/regulator/qcom_rpm-regulator.c
  14. +++ b/drivers/regulator/qcom_rpm-regulator.c
  15. @@ -205,6 +205,7 @@ static int rpm_reg_write(struct qcom_rpm
  16. vreg->val[req->word] |= value << req->shift;
  17. return qcom_rpm_write(vreg->rpm,
  18. + QCOM_RPM_ACTIVE_STATE,
  19. vreg->resource,
  20. vreg->val,
  21. vreg->parts->request_len);