From patchwork Mon Sep 4 05:50:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 720024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 988E1C83F33 for ; Mon, 4 Sep 2023 05:50:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352284AbjIDFux (ORCPT ); Mon, 4 Sep 2023 01:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349774AbjIDFux (ORCPT ); Mon, 4 Sep 2023 01:50:53 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98865DB; Sun, 3 Sep 2023 22:50:49 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3844HFJf030240; Mon, 4 Sep 2023 05:50:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=df5kJdcbUj3Ie03AL/6rqKK9uDRLf1F12ar/dyDuC7w=; b=p17p3HUtt/VZhAA5c7jqNYL91UAQtfxcJ1ckUoE9anX3rYNMBg2+Gsc353rADgAv7y3w aVbRQylETOOajcmVejnA6AoKfUUX41Zat/7oPJSMGpJnbpNcUzMysqIt9GnCVvI5Vfha dEeM2SvVNYtXrUr4ynMZEdm/I3GO4k/3G56T3VjJH1fRJNQrEjUCAxpgIIpPBX54nGnS 2DyFTUoofUyUVZC8GYWECCu/23ljkE90iXYeoTIFqyPXadIZzr7AclJG2U8K4Xf7lD3Z 9pYrEg5KIFKi4AM8HwVZVJSWe5N1UN7xAMzOz9HBirZu9lfv4iZXb8xsbNg/T7TS7Ypc Ew== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3suw99avt1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Sep 2023 05:50:36 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3845oaGU025895 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Sep 2023 05:50:36 GMT Received: from hu-viswanat-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 3 Sep 2023 22:50:30 -0700 From: Vignesh Viswanathan To: , , , , , , , , , , , CC: , , , , , Vignesh Viswanathan Subject: [PATCH 1/3] arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size Date: Mon, 4 Sep 2023 11:20:08 +0530 Message-ID: <20230904055010.4118982-2-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230904055010.4118982-1-quic_viswanat@quicinc.com> References: <20230904055010.4118982-1-quic_viswanat@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Ee3kwRqaOimqHDAP9tCoGi8v8DfmHm7- X-Proofpoint-ORIG-GUID: Ee3kwRqaOimqHDAP9tCoGi8v8DfmHm7- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-04_03,2023-08-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 adultscore=0 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxlogscore=852 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309040052 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ6018 has 32 tcsr_mutex hwlock registers and size of each is 0x1000. Fix size of the tcsr_mutex hwlock register to 0x20000. Also, remove the qcom,ipq6018-tcsr-mutex compatible as this maps to incorrect stride and mutex config for IPQ6018 in hwspinlock driver. Signed-off-by: Vignesh Viswanathan --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 47b8b1d6730a..56537cf8243f 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -392,8 +392,8 @@ gcc: gcc@1800000 { }; tcsr_mutex: hwlock@1905000 { - compatible = "qcom,ipq6018-tcsr-mutex", "qcom,tcsr-mutex"; - reg = <0x0 0x01905000 0x0 0x1000>; + compatible = "qcom,tcsr-mutex"; + reg = <0x0 0x01905000 0x0 0x20000>; #hwlock-cells = <1>; }; From patchwork Mon Sep 4 05:50:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 720194 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC1C3CA0FE3 for ; Mon, 4 Sep 2023 05:50:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352291AbjIDFuy (ORCPT ); Mon, 4 Sep 2023 01:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351439AbjIDFux (ORCPT ); Mon, 4 Sep 2023 01:50:53 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56FB9A4; Sun, 3 Sep 2023 22:50:50 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3845OtUj031675; Mon, 4 Sep 2023 05:50:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=I/37Uk0y1Ml7bRFAFXYT7D0Hq9gRkC0B4BLqrhcfP8Q=; b=ZtnAUT6KQanMMtt+uy9OrN2unHPbo2oDAEFvQByTFQnkYyjaqtg3RYNL2r68YWySVrWz Ojt4Ovore+zGvB1h3EKZr2oKO0Ot/PtXcvFfJlV16bHKwUxg7YsEvT2ACrupV3kYdKOH hUF0caNujNx/MIgGXNkDhwwy5nbsWlu/g12+NzJaGBjukJidDsvfaZQ69sV4gDlnsj5U LIf9kfmLmLo12UHaehUiVjN0QZG00RunSMTLvB3fx4WXiLzOhD379pouKHC2uotm6sw1 IC5BeU7RNq3UM90MZQKUFBcZy4BYiz55myjNCabiqEqfqya8ywd+ceR+lrMWV7fPi6G2 mg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3suw99avtf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Sep 2023 05:50:42 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3845ofGv018743 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Sep 2023 05:50:41 GMT Received: from hu-viswanat-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 3 Sep 2023 22:50:36 -0700 From: Vignesh Viswanathan To: , , , , , , , , , , , CC: , , , , , Vignesh Viswanathan Subject: [PATCH 2/3] hwspinlock: qcom: Drop unused qcom,ipq6018-tcsr-mutex Date: Mon, 4 Sep 2023 11:20:09 +0530 Message-ID: <20230904055010.4118982-3-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230904055010.4118982-1-quic_viswanat@quicinc.com> References: <20230904055010.4118982-1-quic_viswanat@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 73i39ZRJamh6zjolCCwONT5ALO348O65 X-Proofpoint-ORIG-GUID: 73i39ZRJamh6zjolCCwONT5ALO348O65 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-04_03,2023-08-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 adultscore=0 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxlogscore=992 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309040052 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org qcom,ipq6018-tcsr-mutex maps to incorrect config of IPQ6018 and is dropped from the devictree. IPQ6018 will use qcom,tcsr-mutex compatible string. Drop qcom,ipq6018-tcsr-mutex compatible string from qcom_hwspinlock_of_match table. Signed-off-by: Vignesh Viswanathan --- drivers/hwspinlock/qcom_hwspinlock.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c index a0fd67fd2934..814dfe8697bf 100644 --- a/drivers/hwspinlock/qcom_hwspinlock.c +++ b/drivers/hwspinlock/qcom_hwspinlock.c @@ -115,7 +115,6 @@ static const struct of_device_id qcom_hwspinlock_of_match[] = { { .compatible = "qcom,sfpb-mutex", .data = &of_sfpb_mutex }, { .compatible = "qcom,tcsr-mutex", .data = &of_tcsr_mutex }, { .compatible = "qcom,apq8084-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, - { .compatible = "qcom,ipq6018-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, { .compatible = "qcom,msm8226-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, { .compatible = "qcom,msm8974-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, { .compatible = "qcom,msm8994-tcsr-mutex", .data = &of_msm8226_tcsr_mutex }, From patchwork Mon Sep 4 05:50:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 720023 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D506DCA0FE3 for ; Mon, 4 Sep 2023 05:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352297AbjIDFvA (ORCPT ); Mon, 4 Sep 2023 01:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352303AbjIDFu6 (ORCPT ); Mon, 4 Sep 2023 01:50:58 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB38A103; Sun, 3 Sep 2023 22:50:54 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3843F6ZB009342; Mon, 4 Sep 2023 05:50:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=OidOuEeHwvTWTstDMB6aXlGb/mdxwTzx1wHxAbFI7pw=; b=lKdB861jfXp5XTsFmq2x/FTwSJoW0/K4a2Hue0VQ53oSqMhHLCv0tj+chlYybgacSMY3 xdoupWjArL6Axp2pgfrufuv6adqu0DUokVyqPlQVCNbAoxKdXD1KmVL+BHMB2B/Ongku XNOopZLBMXtVK1TyBsaYVtACnaDwMZCFNrDbeWfPk1EBDGgVvVtqhiUIQ/YHVJV7KSWr AoiSS/mYGpN6OQxA6c0hqZntwrOGWwMWnx7h+ucQs87nmTmAjy8/DhwaQNOWmjlXXT0V cgMztA8tWzEPig3q5ChMo2SfJbKQQLQEvH7DlzTLX63ofXk4JAomWK1mnkkvqMMZNMe6 fA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3suw99avtp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Sep 2023 05:50:47 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3845oki0025998 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Sep 2023 05:50:46 GMT Received: from hu-viswanat-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 3 Sep 2023 22:50:41 -0700 From: Vignesh Viswanathan To: , , , , , , , , , , , CC: , , , , , Vignesh Viswanathan Subject: [PATCH 3/3] dt-bindings: hwlock: Drop unused qcom,ipq6018-tcsr-mutex Date: Mon, 4 Sep 2023 11:20:10 +0530 Message-ID: <20230904055010.4118982-4-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230904055010.4118982-1-quic_viswanat@quicinc.com> References: <20230904055010.4118982-1-quic_viswanat@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: UT38wzCvhoO31iPmE9OixILSXv69WUTD X-Proofpoint-ORIG-GUID: UT38wzCvhoO31iPmE9OixILSXv69WUTD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-04_03,2023-08-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 adultscore=0 mlxscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxlogscore=845 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309040052 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Drop qcom,ipq6018-tcsr-mutex enum as this is does not map to the correct config for IPQ6018. IPQ6018 will use qcom,tcsr-mutex compatible string. Signed-off-by: Vignesh Viswanathan --- Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml index ee2726149cf3..a595396fd3f9 100644 --- a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml @@ -22,7 +22,6 @@ properties: - items: - enum: - qcom,apq8084-tcsr-mutex - - qcom,ipq6018-tcsr-mutex - qcom,msm8226-tcsr-mutex - qcom,msm8994-tcsr-mutex - const: qcom,tcsr-mutex