Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2293583rdb; Fri, 8 Dec 2023 04:16:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvlInmVnSWADmAtVRjD+rQ/XlhRxjaxWrnRBUBTsWPjLyctoXkLuzSfS5nZjv5BScfOdll X-Received: by 2002:a17:902:dac7:b0:1d0:6b95:9c0e with SMTP id q7-20020a170902dac700b001d06b959c0emr4206684plx.57.1702037797764; Fri, 08 Dec 2023 04:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702037797; cv=none; d=google.com; s=arc-20160816; b=C/Eqh6vEmQV2dlFjZf6YabpDmYSIM7NP6sg3G9LyzJyHGwnlvgSFsRlnEnJ1brPsQH 6uOXARR5a5KbYBC00JHzrCtYnxiizx2o2MOIL3TLJo0W/FUwFyu5JjWy93fenLEATQWc 6Cl7XpDSkd9NZ5oSOC80u/jDO+aDiSOnYnX2NFOpykyMMLPKWn+dKdjtMFrrXxMzobpe mDmqsXudMX71L0crbK/75VJ4tzBbh+MxJVBkwU5sToVEIfyWFmIKsDIjkHBdNjk24ulo 7V1+pdPW1nDx4PSJOYSRYEnh2fU1PByPr0EAiyLPIGr0jwshGVD4YS3FFgPMtANkGlGh eoFQ== 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=84Cc+cs4mWLxWjEijA/iCSxp8CdOJhiE3inczZ/76mQ=; fh=XbIPAq9wUe9mP2ITFC2KM4qgOMwwmC82d2grLlar3KU=; b=vz9Lqcbzw2vD9kgU4yY9Y0DCcCbmPYYtyKwRnyTjZ5LqBINRoW+/IhNlBdGak8tKOs v4/7a2s6P01eoHxBnC8jiQunifQNiA6z4XOPEJYZaKmvgrWAVtoCCJP6Kg9wz9D/LpO6 +kB4sq6vvdupZ1iV25S2at6O2Ba+Qmw7P4i+ymQcgh14XaUNQViXf5Eyij+FmIjKuM71 D7WoMYqYtSxET0sHURWiFYtOSe4dZLkpr6DrHH+n+k+NMPMkTlj4jgEbU+uOiI9AF/zd 5DDDV3L8MBSIvtAXKy/gkOo/15v5otvzsqg/tPP6PJYqAFfxsE61tIMtoIXoK/5cafzZ a6XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=k7fdtT5E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y13-20020a170902b48d00b001d067cf31c5si1504730plr.197.2023.12.08.04.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 04:16:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=k7fdtT5E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 30C7F8076174; Fri, 8 Dec 2023 04:15:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233400AbjLHMPF (ORCPT + 99 others); Fri, 8 Dec 2023 07:15:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjLHMPA (ORCPT ); Fri, 8 Dec 2023 07:15:00 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75021199F; Fri, 8 Dec 2023 04:15:05 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B8BBngr009546; Fri, 8 Dec 2023 12:14:52 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=84Cc+cs4mWLxWjEijA/iCSxp8CdOJhiE3inczZ/76mQ=; b=k7fdtT5EG4riH7s+A0QqatjvRUUqbZeROdaQFblzse6o6wSZkx/jL/7tu/tpPLh9iQPj hphr80P1+LPiLxpf5DI5U/KjWeel33z81A+HXBJftF/2LgJXovgFwYmfNe1iOs+bhivI yWOQ5daehdJd1gtGP/a4t0aEIqYzxe2ERzJ93JYLRKSvZ2MMnkSl/B2+RLOtH1HsT5Af Lfs2soRGw4+9FWy9Y/8vRlzxpJwKehQ9CwfQ56HnmCT0zFcDSv4D6LLOvdkVWvjU6D1K bDimQ51Md+XefURibdbhPF7wU5Wu0yjnOocDUNTbQ3lkl4sVPyWs4Af7LSXvSWGOs7/H 1g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uuj96j1ff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Dec 2023 12:14:52 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B8CEp1j029351 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 8 Dec 2023 12:14:51 GMT Received: from [10.216.26.153] (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; Fri, 8 Dec 2023 04:14:45 -0800 Message-ID: <516aeb55-69ad-460c-9757-6ad8a203b693@quicinc.com> Date: Fri, 8 Dec 2023 17:44:41 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/6] usb: dwc3: qcom: Rename hs_phy_irq to qusb2_phy_irq To: Johan Hovold CC: Thinh Nguyen , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Wesley Cheng , Conor Dooley , , , , , , , References: <20231204100950.28712-1-quic_kriskura@quicinc.com> <20231204100950.28712-3-quic_kriskura@quicinc.com> <9d52fa8c-41d1-46a7-be89-5c1c11ca09b4@quicinc.com> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: 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: SFyHIducnV-0mN69EJA_ZT_2NW7IOWjW X-Proofpoint-ORIG-GUID: SFyHIducnV-0mN69EJA_ZT_2NW7IOWjW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-08_06,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 mlxlogscore=497 malwarescore=0 phishscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312080102 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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 08 Dec 2023 04:15:29 -0800 (PST) On 12/7/2023 10:04 PM, Johan Hovold wrote: > On Thu, Dec 07, 2023 at 09:17:32PM +0530, Krishna Kurapati PSSNV wrote: >> On 12/7/2023 8:58 PM, Johan Hovold wrote: > >>> Here too you should say something about why this won't break any systems >>> booting using an older devicetree. Specifically, the QUSB2 PHY interrupt >>> has never been armed on any system running mainline as those bits never >>> made it upstream. >>> >>> So an alternative to this could also be to just drop the QUSB2 PHY >>> interrupt handling from this driver for now. > > >> So, are you suggesting that we drop the whole patch ? > > No, I meant that an alternative could be to drop the current hs_phy_irq > handling from the driver. > >> I assume if the older kernels are using old DT, they would be using an >> old driver version too right ? > > No, and this is part of the devicetree ABI as we discussed the other > week. > > You should generally be able to continue booting with an older devicetree > on a newer kernel (even if newer functionality may not be enabled then). > >> Is there a case where DT is not updated but driver is ? Because if we >> drop this patch from series, targets with updated DT's would break. > > Actually they would not due to the fact that the QUSB2 PHY interrupt is > currently never armed in the PHY (and the interrupts are looked up by > name and are considered optional by the driver). > > But simply dropping this patch is not an option here. I'm fine with this > patch as it is, but the reason we can merge it is that those interrupts > are currently not actually used. Otherwise, this would break older > devicetrees. > > But this also means, we could consider dropping the current hs_phy_irq > handling altogether. > > Hmm. Looking at the qusb2_phy_runtime_suspend() again now I see that the > interrupt is actually armed on runtime suspend, it's just that it is > configured incorrectly and would wakeup immediately if someone ever > exercised this path. > > Specifically, the bits that would set those PHY_MODE_USB_HOST_HS modes > (that should never have been merged) never made it upstream so this code > is just dead code currently. I said before I'll look into ripping this > out, but yeah, I'm swamped with work as usual (and it has been sitting > there dead for years so there's no rush). > > So to summarise, the QUSB2 wakeup handling is incomplete and broken, so > we won't actually make things worse by renaming the interrupts. If this > was working, we would need to continue supporting the old names, though. > Thanks for the review. Since renaming the interrupts won't be an issue, I will keep this patch as is in that case in v3. Regards, Krishna,