Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5872908rdb; Thu, 14 Dec 2023 01:56:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9o24iXhB0WE9LSwJz8yvJShWZWavDgoADbiZh3ZKxXwpb4PLLI+8NmHf+SGtfykjb2rdL X-Received: by 2002:a05:6808:d52:b0:3b2:db61:ff8e with SMTP id w18-20020a0568080d5200b003b2db61ff8emr13346608oik.33.1702547804586; Thu, 14 Dec 2023 01:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702547804; cv=none; d=google.com; s=arc-20160816; b=KXBIrSKOpSHy1EFmIsoMbNJymZw2zrt4XttiwhPYmpzTd1uWVP0uBjZJ4KA8QtC2CU fjBzSdXXjYrAInE2kOHGDOUD8mC1XdqrFbB+30aDPAPuraQKtp0rIwZHDv443jHdMe2S vFmE2nT8mIuj2KJqA6gib52YL3/9phL2t1kF/zhwhSEOnVEaGxiJ/wXDTe+Q9N+UC77b DvtEFX98lB9GKI3A5bkTGIxSbd33E52LGiJ6IpXJI10oqeOKDQVEMByQdpa7ConqZMn1 /F/bBogysYQGrVTaddj4sQ1J4jGi1vJyIDPRkKFcZ0Xf3I0FZ5KgfDLGfigV2wcQPera LQVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yFm46lVpwFF/h9Go9M5H23y8n5GremZx9+tW/FMG6/c=; fh=U/6QxTdKOsApo9LUV4Evl/XeMaW+XXVN6XFhP/GlXns=; b=ur0EHS9xlqMdc4kAIo1Kyg/mPJa1Eqs2krf3O6Ba5er/E1sX9Du1al1q5XzkqqsXYc JUeND7ltbDPI14McdhVg4bT8hCEaSUsfESxAO8Lqtqa15HO/FdHPULsdq/QXk8J0XKJD iMLfSkAEnEX8eDDSb3AOnbH9BRpymwgVrNszEKKSrU+bOeHdcovdRBOf7Y76C9WoxCFr JLH0cIaDdzhMQTBcCjl4LGXCPLPKT3BVeiMsxpoSX2IS6JxPjsXwUFKfvENXIGBP1LPX QUn/QRqx8DM8TLRZJ7H/aIZQsdT48GJ0x8aiA1DanJHK7sstcl+Po298Fh0G/wwHwuyG jF3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GADCLlq3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id cj24-20020a056a00299800b006cef5bfd622si8890511pfb.65.2023.12.14.01.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 01:56:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GADCLlq3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id F1E4481F3891; Thu, 14 Dec 2023 01:56:41 -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 S1443469AbjLNJ42 (ORCPT + 99 others); Thu, 14 Dec 2023 04:56:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443481AbjLNJ40 (ORCPT ); Thu, 14 Dec 2023 04:56:26 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94A3A106 for ; Thu, 14 Dec 2023 01:56:32 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7342C433C7; Thu, 14 Dec 2023 09:56:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702547792; bh=wGKhND1VfRS+D1xAwDoI8Hg7Nwb7ZoAYE7B0z+inPCM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GADCLlq3M+2WeHKjyGpBSbsGGuM6Aq3ZPmvdby8mBpQHiXZWnWRCCJI0UI7UedGtc 3WuWgWBoGU8ioevc1HxgM2lZmQJuS9Qy2a1ZqX322zNaD8sIy5R1yqrJ0DS1TZ4dpD osLRPlatKi68ocGgfxrP9j9Ixoi8G+GYBlOzEzvh+1qJNVQ/+zCJRurIhZB2m87y1I LVwyjP1rAUsMMU7GX8Q1uY6B3gi1KhRXs06VeRXhYnTIAZ6Ae2pMMgKroZtOF2ewqh qUB62T45DB2cBOs4QRnFBYdiqgMm1jCBEakytBzQInGC2l0b42Phvrz/Cc2A9XnqUB F6WKFeiXrSaRA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDiSB-0007l7-1q; Thu, 14 Dec 2023 10:56:28 +0100 Date: Thu, 14 Dec 2023 10:56:27 +0100 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Krzysztof Kozlowski , Rob Herring , Wesley Cheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio , Greg Kroah-Hartman , Krzysztof Kozlowski , Andy Gross , Conor Dooley , devicetree@vger.kernel.org, Thinh Nguyen , quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Bjorn Andersson Subject: Re: [PATCH v3 1/2] dt-bindings: usb: dwc3: Clean up hs_phy_irq in bindings Message-ID: References: <20231211121124.4194-1-quic_kriskura@quicinc.com> <20231211121124.4194-2-quic_kriskura@quicinc.com> <24fb0b25-0139-4370-864c-839ae931f847@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Thu, 14 Dec 2023 01:56:42 -0800 (PST) On Wed, Dec 13, 2023 at 09:48:57PM +0530, Krishna Kurapati PSSNV wrote: > On 12/13/2023 12:45 PM, Krzysztof Kozlowski wrote: > > On 11/12/2023 13:11, Krishna Kurapati wrote: > >> The high speed related interrupts present on QC targets are as follows: > >> Classiffy SoC's into four groups based on whether qusb2_phy interrupt typo: Classify > >> or {dp/dm}_hs_phy_irq is used for wakeup in high speed and whether the > >> SoCs have hs_phy_irq present in them or not. > >> > >> The ss_phy_irq is optional interrupt because there are mutliple SoC's > >> which either support only High Speed or there are multiple controllers > >> within same Soc and the secondary controller is High Speed only capable. > >> > >> This breaks ABI on targets running older kernels, but since the interrupt > >> definitions are given wrong on many targets and to establish proper rules > >> for usage of DWC3 interrupts on Qualcomm platforms, DT binding update is > >> necessary. > > > > This still does not explain why missing property has to be added as > > first one, causing huge reordering of everything here and in DTS. > > > > If pwr_event is required and we already break the ABI, reduce the impact > > of the change by putting it after all required interrupts. Otherwise > > please explain here and in commit msg why different approach is taken. > > > > Hi Krzysztof. I don't know much about the effect of the ordering on ABI. > I will try to learn up on it. Would the series be good if we just move > the pwr_event to the end and keep everything in v3 as it is, and push v4 > for now ? Since all SoCs have the pwr_event (HS) interrupt, but not all controllers have the SS PHY interrupt, this would prevent expressing that the SS PHY is optional by keeping it last in the binding schema and making sure that minItem = maxItems - 1. And as we discussed, the aim here is to group the three classes of SoCs (qusb2, qusb2+, femto) and fix the order of these interrupts once and for all so that random reorderings, renames and omissions do not make it into the bindings next time someone grabs a downstream DT and sends it upstream. Johan