032-hwspinlock-qcom-Correct-msb-in-regmap_field.patch 1003 B

1234567891011121314151617181920212223242526
  1. From bd5717a4632cdecafe82d03de7dcb3b1876e2828 Mon Sep 17 00:00:00 2001
  2. From: Bjorn Andersson <bjorn.andersson@sonymobile.com>
  3. Date: Fri, 26 Jun 2015 14:47:21 -0700
  4. Subject: [PATCH] hwspinlock: qcom: Correct msb in regmap_field
  5. msb of the regmap_field was mistakenly given the value 32, to set all bits
  6. in the regmap update mask; although incorrect this worked until 921cc294,
  7. where the mask calculation was corrected.
  8. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
  9. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
  10. ---
  11. drivers/hwspinlock/qcom_hwspinlock.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/drivers/hwspinlock/qcom_hwspinlock.c
  14. +++ b/drivers/hwspinlock/qcom_hwspinlock.c
  15. @@ -123,7 +123,7 @@ static int qcom_hwspinlock_probe(struct
  16. for (i = 0; i < QCOM_MUTEX_NUM_LOCKS; i++) {
  17. field.reg = base + i * stride;
  18. field.lsb = 0;
  19. - field.msb = 32;
  20. + field.msb = 31;
  21. bank->lock[i].priv = devm_regmap_field_alloc(&pdev->dev,
  22. regmap, field);