Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp170921rdh; Wed, 22 Nov 2023 23:57:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsC6U3PUZ2hexNDlJuXk2Lkyi7p8NepjqNKuTiqo1snTOvyjB5hSmwNZCU0cM9h2esYcfY X-Received: by 2002:a17:90b:4a45:b0:281:554d:b318 with SMTP id lb5-20020a17090b4a4500b00281554db318mr4507352pjb.39.1700726264660; Wed, 22 Nov 2023 23:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700726264; cv=none; d=google.com; s=arc-20160816; b=oNnvgVK9SjjzGMkli9852S9ZsKyz18r6Lt85hO7c3eMfp0rdlVDOQ0ptqOqz4A2Cmy JQpSiExtyDaaO4LjIky+SHCvJ7gIsDCvsIhEgbxTxWTqkXvmh3ESrwPlzm7u7m7+jtDt 51Bq/g8D82GzGATpVbBmEzRkTmesvtB71lvUUi2VBLCUsi8FEWe6whb+0BGcKGVESqjT BCMM6ry8htxRP2d7GQcinToXYvdxM/RCXeJZ5bbe9zOYGZKRvQtGBMSaAd5IUQMyssYu AOQyuFHD4SWeuGFRRs2Tq3dRUPBGQBBnZLySxvj6U/TACkUyU5WQWr/r1FYKdu5cSq4X L5gA== 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=xT9mC5lx0ErBSkckehHdh13wVtvWEQZryXxBATcTRJw=; fh=Pd9Si9NyR3fkC712qs1iBMdeyk+IzOrCkejvHwzMEmw=; b=n3Zuz+x4vlkyQz5KCRvK/pwzyA9kvHgsloFAkzrga/aiHdetC0fdeTr3bvV28Y5NUc ewDSf4egkpkxuM3IAOD7Eqn79ICo1BZbTTgQ1oABDn/BzhloH9b477QT0Uubu29OlDen YRPOzxVNEI3Vw99OZIFFRAt7TS89qubD+4BMfijYxjWUeqi6Rnh9T2/Gl5/4H/js8GrL 6UMtXPGJq6Dv31J69ROtfsC3Ma9XLA3GbX/DYszrBw5FtdEGC+otFLw0xRigpiEuzz0B pMfU8EmsV3IKIEyIMd0BQiSXzM+UmrTJnKYOzbamukh9WvG0eS0PKzwDvBA0nSyjU7St M9qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UyGLY6re; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id q34-20020a17090a752500b0027cdee52324si1366068pjk.74.2023.11.22.23.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:57:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UyGLY6re; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 537C7807E427; Wed, 22 Nov 2023 23:57:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbjKWH51 (ORCPT + 99 others); Thu, 23 Nov 2023 02:57:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjKWH5Z (ORCPT ); Thu, 23 Nov 2023 02:57:25 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3694AA2; Wed, 22 Nov 2023 23:57:32 -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 3AN4OuvR006167; Thu, 23 Nov 2023 07:57:28 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=xT9mC5lx0ErBSkckehHdh13wVtvWEQZryXxBATcTRJw=; b=UyGLY6reJYmK290YvCkxpr1vZxz2DimypKIOWWXKXPKwHR5/c58jNds9REsqq8cvKKvg LGUAYkyHpv0WgXjC13s/E8k/mS7pzg6JMDGfix8C+fV9wcQ7Rsv1LkCF7x/Yu1ZbUUqW 2r4tmR4Bo9BWCS9UnIKR1sYT4p3UvwVkpX1d7wevPFzL269+ItnNX3Yc+rTACHuG1jnn R+GgpwcKyDqWRHdwO01uF7HnJUPwcQMLnIp7Ybkjwj04SIhTYgiumzCD559AL5pw4Hr0 tLfAxoaICpcVOvbxyW0G6GjdNljgVLl0OQi2IFHFXobAyceRgq2S03iqWQkSRpfHeVzX 0A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uhr5psac8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 07:57:27 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AN7vQZd023540 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 07:57:26 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:57:20 -0800 Message-ID: Date: Thu, 23 Nov 2023 13:27:20 +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> <7f4d20fd-b975-47ab-8dfb-2a0eb3db04fc@linaro.org> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: <7f4d20fd-b975-47ab-8dfb-2a0eb3db04fc@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: rdU-o8uxm5bjbM06Njdx5lEv1Sg8bAZv X-Proofpoint-ORIG-GUID: rdU-o8uxm5bjbM06Njdx5lEv1Sg8bAZv 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-2311230055 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:57:42 -0800 (PST) On 11/23/2023 1:20 PM, Krzysztof Kozlowski wrote: > On 23/11/2023 08:44, Krishna Kurapati PSSNV wrote: >> >> >> 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. > > Where did you explain it in the commit msg? Why adding new compatibles > is squashed to this patch? > Apologies. I meant I should've put the explanation in commit text which I missed. Will do it while revising this patch. > You need separate commit with its own justification. I am not sure if > calling things secondary and tertiary scales. Please describe all the > differences and come with some reason for the naming. > > Sure, will separate out the new compatible additions and then make different commits. Regards, Krishna,