Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp166740rdh; Wed, 22 Nov 2023 23:44:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2ieUuQi975ZEZgZ+8D76hLKunhIminNZQjvtiPKdya6yMNmssTZ0WPoO041wPtfW0bvvz X-Received: by 2002:a05:6a20:4286:b0:18b:5acc:8ab4 with SMTP id o6-20020a056a20428600b0018b5acc8ab4mr3817123pzj.7.1700725477500; Wed, 22 Nov 2023 23:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700725477; cv=none; d=google.com; s=arc-20160816; b=yM2Yn6D+HPiJjfCUeP0GpbRgPHxYZAbbF7vhwvVRNrKWGqM1QEW7PcJ+D4F6caOzgR Bl+R2tbrvQ+25msjCV3DnAhsgh93TsKyTgM/eRidjhFweE0xsDMckB8J7jis1jIyyo0B 092Qt99qtzUdtk2NanZ3ypI4WVlCUAcOautoV2Zp5LUAZb4I7zNqvNNz4TSiR0iODIcK 3Vgoxm5gpbOoFHilfm4hI6+5EAhhXdG/NireY0ENeKuktMzsdre9vIBiIvvl2E3T5M6c G4RZCty6U95KEc4olNYtjNOIUQ09engu8szBkYf8coYQF20I7fMuW2NKpAQK0CfRvSAP ToXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ODq+VcjcMmK3OWQ4qwMAU23ZgLzdDzuPsqKbO1zYxSI=; fh=Pd9Si9NyR3fkC712qs1iBMdeyk+IzOrCkejvHwzMEmw=; b=hZPuNySPuCn6x6319ua4eUuNn42l2k8iMd+eWK3tWr62LcBSOozxaD/LYiIXkiAmu4 vITUMDOuGsZ7Eg7DhC6KbahbWL0HivtkLDrYDHSF+SXcrX88TeFwNOgG8EsDJ35WiKmc HCTldUetLSCmQea8bb+BiHzASsvPIHxAQCVxU0KxWMo2jWXHfBh4+/UM8d1cLzGE4nrk r94/P7Z51lagfxappTH54/L3zHUtOJciKLYBXplui1QCd/XMTQVYt3ssBU1mbIEpURYr f/nq/mBGYnVP1fw34E7PU/bBM1NgvYld98U3hXQ75Ga86m1hypjNCSj0JR3z9nUJ19ZA rqaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BrX2xUsx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id n3-20020a170902e54300b001c5fd2a28desi666661plf.222.2023.11.22.23.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BrX2xUsx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B9C488081CF1; Wed, 22 Nov 2023 23:44:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbjKWHoV (ORCPT + 99 others); Thu, 23 Nov 2023 02:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjKWHoU (ORCPT ); Thu, 23 Nov 2023 02:44:20 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 880C8E7; Wed, 22 Nov 2023 23:44:26 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AN5p9sG019102; Thu, 23 Nov 2023 07:44:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=ODq+VcjcMmK3OWQ4qwMAU23ZgLzdDzuPsqKbO1zYxSI=; b=BrX2xUsx3jWrJ1R1XCstV+ygot0GspjyJgPR0Ec30fHr69llr/7n6OlXX2qF4VE4cNlh DOKQpRnhC1P+iZZpLhmgF9PkykXNYgf+IuaEc70RzNSmGxQJx9lrX5KznuZk7kN6StcQ na+Qwr3VCxe82BTcL9WfvQcW/wY13oYQ/5SKNcP9ueD46r4T3V3KtALOSzhqXZr0mSYA u+aRxGQJ9s3jjmpUePdmESkXSpIc9p4Dl592Zzn4Xz3nqXqVKVQB+0OQxBiuYa9uiI9t Pxof+BOZbg74PqcnIo+J/ITT8ixnHrMsCdiqnubNP/ZZTKtF/fZXxPu5l9T6TT5b5NMs AQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uhr5ps96c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 07:44:22 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AN7iLoi024807 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 07:44:21 GMT Received: from [10.216.59.116] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 22 Nov 2023 23:44:15 -0800 Message-ID: Date: Thu, 23 Nov 2023 13:14:11 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] dt-bindings: usb: dwc3: Clean up hs_phy_irq in bindings To: Krzysztof Kozlowski , Bjorn Andersson , Rob Herring CC: , , Andy Gross , , , Konrad Dybcio , , Conor Dooley , "Krzysztof Kozlowski" , , , Greg Kroah-Hartman References: <20231122191335.3058-1-quic_kriskura@quicinc.com> <4c323ab5-579f-41f5-ab77-c087136e4058@linaro.org> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: <4c323ab5-579f-41f5-ab77-c087136e4058@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: zZdZlOuvuxHtKt3sV6lJrgfqK5tiTUeC X-Proofpoint-ORIG-GUID: zZdZlOuvuxHtKt3sV6lJrgfqK5tiTUeC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-23_05,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 phishscore=0 mlxscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 adultscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311230054 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:44:34 -0800 (PST) On 11/23/2023 1:11 PM, Krzysztof Kozlowski wrote: > On 22/11/2023 20:13, Krishna Kurapati wrote: >> The high speed related interrupts present on QC targets are as follows: >> >> dp/dm Irq's >> These IRQ's directly reflect changes on the DP/DM pads of the SoC. These >> are used as wakeup interrupts only on SoCs with non-QUSBb2 targets with >> exception of SDM670/SDM845/SM6350. >> >> qusb2_phy irq >> SoCs with QUSB2 PHY do not have separate DP/DM IRQs and expose only a >> single IRQ whose behavior can be modified by the QUSB2PHY_INTR_CTRL >> register. The required DPSE/DMSE configuration is done in >> QUSB2PHY_INTR_CTRL register of phy address space. >> >> hs_phy_irq >> This is completely different from the above two and is present on all >> targets with exception of a few IPQ ones. The interrupt is not enabled by >> default and its functionality is mutually exclusive of qusb2_phy on QUSB >> targets and DP/DM on femto phy targets. >> >> The DTs of several QUSB2 PHY based SoCs incorrectly define "hs_phy_irq" >> when they should have been "qusb2_phy_irq". On Femto phy targets, the >> "hs_phy_irq" mentioned is either the actual "hs_phy_irq" or "pwr_event", >> neither of which would never be triggered directly are non-functional >> currently. The implementation tries to clean up this issue by addressing >> the discrepencies involved and fixing the hs_phy_irq's in respective DT's. >> >> Signed-off-by: Krishna Kurapati >> --- >> .../devicetree/bindings/usb/qcom,dwc3.yaml | 125 ++++++++++-------- >> 1 file changed, 69 insertions(+), 56 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >> index e889158ca205..4a46346e2ead 100644 >> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml >> @@ -17,20 +17,25 @@ properties: >> - qcom,ipq5018-dwc3 >> - qcom,ipq5332-dwc3 >> - qcom,ipq6018-dwc3 >> + - qcom,ipq6018-dwc3-sec > > I could not understand from commit msg why you are adding new compatible > and what it is supposed to fix. > > The entire diff is huge thus difficult to review. Why fixing hs_phy_irq > causes three new interrupts being added? Some targets have two controllers where the second one is only HS capable and doesn't have ss_phy_irq. In such cases to make it clear in bindings, I added a suffix "-sec" and accordingly changed in DT as well. Should've put this in commit text. >> - qcom,ipq8064-dwc3 >> - qcom,ipq8074-dwc3 >> - qcom,ipq9574-dwc3 >> - qcom,msm8953-dwc3 >> - qcom,msm8994-dwc3 >> - qcom,msm8996-dwc3 >> + - qcom,msm8996-dwc3-sec >> - qcom,msm8998-dwc3 >> - qcom,qcm2290-dwc3 >> - qcom,qcs404-dwc3 >> - qcom,sa8775p-dwc3 >> + - qcom,sa8775p-dwc3-ter > > Ter? > Tertiary controller. Regards, Krishna,