qualcommax: backport more changes for ipq6018 and ipq8074
[openwrt/staging/wigyori.git] / target / linux / qualcommax / patches-6.1 / 0057-v6.8-hwspinlock-qcom-Remove-IPQ6018-SOC-specific-.patch
1 From c3dc3d079d191c9149496b3c7fe1ece909386d93 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] 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 Fixes: 5d4753f741d8 ("hwspinlock: qcom: add support for MMIO on older SoCs")
15 Signed-off-by: Vignesh Viswanathan <quic_viswanat@quicinc.com>
16 Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
17 Link: https://lore.kernel.org/r/20230905095535.1263113-3-quic_viswanat@quicinc.com
18 Signed-off-by: Bjorn Andersson <andersson@kernel.org>
19 ---
20 drivers/hwspinlock/qcom_hwspinlock.c | 1 -
21 1 file changed, 1 deletion(-)
22
23 --- a/drivers/hwspinlock/qcom_hwspinlock.c
24 +++ b/drivers/hwspinlock/qcom_hwspinlock.c
25 @@ -115,7 +115,6 @@ static const struct of_device_id qcom_hw
26 { .compatible = "qcom,sfpb-mutex", .data = &of_sfpb_mutex },
27 { .compatible = "qcom,tcsr-mutex", .data = &of_tcsr_mutex },
28 { .compatible = "qcom,apq8084-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
29 - { .compatible = "qcom,ipq6018-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
30 { .compatible = "qcom,msm8226-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
31 { .compatible = "qcom,msm8974-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },
32 { .compatible = "qcom,msm8994-tcsr-mutex", .data = &of_msm8226_tcsr_mutex },