21e60c632799d8ee659059a6d2f7c65b5618035f
[openwrt/staging/wigyori.git] / target / linux / qualcommax / patches-6.1 / 0138-hwspinlock-qcom-Remove-IPQ6018-SOC-specific-compatib.patch
1 From a120815200adaf3ac28ccf3a1813c78b4be02cc4 Mon Sep 17 00:00:00 2001
2 From: Vignesh Viswanathan <quic_viswanat@quicinc.com>
3 Date: Tue, 5 Sep 2023 15:25:35 +0530
4 Subject: [PATCH v2 2/2] hwspinlock: qcom: Remove IPQ6018 SOC specific compatible
5
6 IPQ6018 has 32 tcsr_mutex hwlock registers with stride 0x1000.
7 The compatible string qcom,ipq6018-tcsr-mutex is mapped to
8 of_msm8226_tcsr_mutex which has 32 locks configured with stride of 0x80
9 and doesn't match the HW present in IPQ6018.
10
11 Remove IPQ6018 specific compatible string so that it fallsback to
12 of_tcsr_mutex data which maps to the correct configuration for IPQ6018.
13
14 Changes in v2:
15 - Updated commit message
16 - Added Fixes and stable tags
17
18 Cc: stable@vger.kernel.org
19 Fixes: 5d4753f741d8 ("hwspinlock: qcom: add support for MMIO on older SoCs")
20 Signed-off-by: Vignesh Viswanathan <quic_viswanat@quicinc.com>
21 ---
22 drivers/hwspinlock/qcom_hwspinlock.c | 1 -
23 1 file changed, 1 deletion(-)
24
25 --- a/drivers/hwspinlock/qcom_hwspinlock.c
26 +++ b/drivers/hwspinlock/qcom_hwspinlock.c
27 @@ -115,7 +115,6 @@ static const struct of_device_id qcom_hw
28 { .compatible = "qcom,sfpb-mutex", .data = &of_sfpb_mutex },
29 { .compatible = "qcom,tcsr-mutex", .data = &of_tcsr_mutex },
30 { .compatible = "qcom,apq8084-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
31 - { .compatible = "qcom,ipq6018-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
32 { .compatible = "qcom,msm8226-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
33 { .compatible = "qcom,msm8974-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
34 { .compatible = "qcom,msm8994-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },