0057-v6.8-hwspinlock-qcom-Remove-IPQ6018-SOC-specific-.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. From c3dc3d079d191c9149496b3c7fe1ece909386d93 Mon Sep 17 00:00:00 2001
  2. From: Vignesh Viswanathan <[email protected]>
  3. Date: Tue, 5 Sep 2023 15:25:35 +0530
  4. Subject: [PATCH] hwspinlock: qcom: Remove IPQ6018 SOC specific compatible
  5. IPQ6018 has 32 tcsr_mutex hwlock registers with stride 0x1000.
  6. The compatible string qcom,ipq6018-tcsr-mutex is mapped to
  7. of_msm8226_tcsr_mutex which has 32 locks configured with stride of 0x80
  8. and doesn't match the HW present in IPQ6018.
  9. Remove IPQ6018 specific compatible string so that it fallsback to
  10. of_tcsr_mutex data which maps to the correct configuration for IPQ6018.
  11. Fixes: 5d4753f741d8 ("hwspinlock: qcom: add support for MMIO on older SoCs")
  12. Signed-off-by: Vignesh Viswanathan <[email protected]>
  13. Reviewed-by: Konrad Dybcio <[email protected]>
  14. Link: https://lore.kernel.org/r/[email protected]
  15. Signed-off-by: Bjorn Andersson <[email protected]>
  16. ---
  17. drivers/hwspinlock/qcom_hwspinlock.c | 1 -
  18. 1 file changed, 1 deletion(-)
  19. --- a/drivers/hwspinlock/qcom_hwspinlock.c
  20. +++ b/drivers/hwspinlock/qcom_hwspinlock.c
  21. @@ -115,7 +115,6 @@ static const struct of_device_id qcom_hw
  22. { .compatible = "qcom,sfpb-mutex", .data = &of_sfpb_mutex },
  23. { .compatible = "qcom,tcsr-mutex", .data = &of_tcsr_mutex },
  24. { .compatible = "qcom,apq8084-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
  25. - { .compatible = "qcom,ipq6018-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
  26. { .compatible = "qcom,msm8226-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
  27. { .compatible = "qcom,msm8974-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
  28. { .compatible = "qcom,msm8994-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },