Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3750787rdh; Tue, 28 Nov 2023 02:57:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXbmEZN3oz5p4oFzQcr2ZK1KTOt5JNIsuqp+vXoTfuCI9mx1x7jdRBw1tcr+vXHJVroFET X-Received: by 2002:a05:6871:7515:b0:1fa:6f5:7b11 with SMTP id ny21-20020a056871751500b001fa06f57b11mr15725696oac.36.1701169053225; Tue, 28 Nov 2023 02:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701169053; cv=none; d=google.com; s=arc-20160816; b=e+JQtk1NP8nAtAgkUGAvbPScBXzMLs0+gIco+PrIJIQtprMh3LqCo1BrnUogyGjFXR yh04iYwAYxpwcF5R/fNRzHgHQdKigPz4fliBX/ApNnL35ri+NfOnS43Umb7ajrU1qM+R lFTgcNJp76InnqCPBwtx4YXU6pHwEmJs3JWqdYUEe/zSDOqmWn3FnQDOPhcC3C34trOI uB1+23aSX89ZFPqKk5kNWFcEmJ+cCrT6aUDYfPNAoQDnTxM9PdHdeh8Nv9yD0ibFI2Ys hnki9lzkqPQ3va6gJCkjJ29TeC5DPHBBgmJGDLkws4gC715W32ohaQccUZ5n6PL83XvS MxDQ== 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=OdgrGj0peZA1TP2JGpar5yObYZUbqwa/Pwle7KomNdw=; fh=Ogdn2SWkcYUt3TprLFTST5f+HChzEPLKtTE+PgwcK80=; b=tmEA8b39tZAn11tFTi6YxBLf+oDBL9P5e6LrjKk5JZlMplMYpzFNiULCBBQFEMpAd2 blsWJAu55CwxqY8cqOdOW+RBq60LckuwGo5UtiH+AM20gpXPruz4svaPvnxGFdqVvRPT AJgsgfa+jWHvg0IJdXkCKYqhtnCa4kl99q7Y6n82Equ5h4vWtTAC9DVEDIxzM3E1VMkz Yn2iQUUiDjN4YbgGFd9Ks8p+tbIz/HE3czkZ5qOKBD6vfsLH1Y4xkL/IOunBdRyPhYiK W34Wy1OQgHH1O62qyh2XrAYARUan9/tu0EPsAPfm03Q5OZz+BIw8Py1ZxYt6xdVRwpsA mDKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AD6s+RD+; 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=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id f23-20020a63dc57000000b005b7c45c8acasi11501500pgj.238.2023.11.28.02.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:57:33 -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=@kernel.org header.s=k20201202 header.b=AD6s+RD+; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EE38180DA8E7; Tue, 28 Nov 2023 02:57:30 -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 S1344088AbjK1K5S (ORCPT + 99 others); Tue, 28 Nov 2023 05:57:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343778AbjK1K5Q (ORCPT ); Tue, 28 Nov 2023 05:57:16 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52556189 for ; Tue, 28 Nov 2023 02:57:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8033C433C7; Tue, 28 Nov 2023 10:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701169043; bh=YneTLXB1mmfGNl3d0q1JaknL6gIyvE7m5Usmdw11fFk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AD6s+RD+HhYX03u/xLI9X4ZvmMgS7DysGh94q+tZS3O1cAf+OBIcDcpYBkIiwr53Y EVosBvet6LVHec5YJbCJHj6TjLkISwR64UUZHY5DGWLvU6UmbP75XfBvyCpJeC86tP UjJTzPU8atfgF0MRQNDTRY2GoqpUGc+B7197fW3MtQEoi5ELJYg+R36Xd8rg075hPo 1wFeEgfjh2L/KmdVr8uNtrPYuF78BwN0I1lnqoZocOYReov7Le4/gtEzelwIKcQDoq vY4rpwYWwcfiZQFQ1z0EgxF0xz5GNFoS8xetv+l/QEwPod/iNzgf6tvqUz+I10VQX9 NKQe2+aV88aNA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r7vmo-0005v9-2v; Tue, 28 Nov 2023 11:57:51 +0100 Date: Tue, 28 Nov 2023 11:57:50 +0100 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , quic_wcheng@quicinc.com, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com Subject: Re: [PATCH 1/6] dt-bindings: usb: dwc3: Clean up hs_phy_irq in bindings Message-ID: References: <20231122191335.3058-1-quic_kriskura@quicinc.com> <1192d91f-11bf-44af-953a-14e08e2b6ca8@quicinc.com> <004ddc69-1566-4de4-b260-0fca96a9395f@quicinc.com> <18965bb9-7afa-4892-8b71-981ba29d2cd4@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18965bb9-7afa-4892-8b71-981ba29d2cd4@quicinc.com> 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 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]); Tue, 28 Nov 2023 02:57:31 -0800 (PST) On Tue, Nov 28, 2023 at 04:02:53PM +0530, Krishna Kurapati PSSNV wrote: > > >> My opinion would be to keep the power_event irq as mandatory and not to > >> include the hs_phy_irq. > > > > Ok, but you still need to explain why dropping hs_phy_irq is correct. > > > > Until there's a clear answer to that, it seems we need to include it. > > Sure, I agree with you. It should describe what hardware is capable of, > not what we choose to add in driver code. In that sense we can add the > hs_phy_irq to all targets. > > In my next revision, I can do the following: > > - anyOf: > - items: > - const: qusb2_phy > - items: > - const: dp_hs_phy_irq > - const: dm_hs_phy_irq > - const: hs_phy_irq > - const: pwr_event > - const: ss_phy_irq (optional) > > A modified version of your suggestion should help cover all cases and > describe all DT's perfectly. It may be better to spell out the permutations. Especially since there are no platforms with both qusb2_phy and dp/dm as I thought when mentioning the above. Using anyOf also makes it hard to specify min/maxItems as you'll need to do. So back to my initial proposal, with a slight modification moving pwr_event first (e.g. as it is not a wakeup interrupt): qusb2-: - const: pwr_event - const: qusb2_phy - const: ss_phy_irq (optional) qusb2: - const: pwr_event - const: hs_phy_irq - const: qusb2_phy - const: ss_phy_irq (optional) femto-: - const: pwr_event - const: dp_hs_phy_irq - const: dm_hs_phy_irq - const: ss_phy_irq (optional) femto: - const: pwr_event - const: hs_phy_irq - const: dp_hs_phy_irq - const: dm_hs_phy_irq - const: ss_phy_irq (optional) That ss_phy_irq is optional would be expressed as minItems being one less than maxItems for each permutation. Johan