From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 05516C54EE9 for ; Thu, 22 Sep 2022 21:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CkCPmTzaPxjmwBc2zypF58YB3GCsvtRnJOqIlXnYdOQ=; b=KrajptlGkJAlgD i6wlWGADb8zBq+Rp5gA3yXv2uEbtOnS66ruRvUg1YOUZP54yVUalAea0ZaMi/EYAYeGAt5gsU2jym jsrifYlgP/hZgoXUp3tGtkj0O4oCgEF2pihiJDuJcyBZJZq0Xnb9JuTBs728LcxVx0PXuUnoiQ5x7 2qhe+rLJdTeuzG6vWh8i7ZghTBdmkJFN6zS8pElj5yC6eTDqnqu0wXRjJtOsIJFh4zIuS5bLBLhd6 ECkj22WuwCXEbzGj3AJF4+QNoA4gsNTpA9fb/kMXtrKWMpCYZ7HDP/KQkEPo+RUpcXsAcZWcNNy/h kpS2CvUpmaw3vP+o0nsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obTRR-000FZj-VG; Thu, 22 Sep 2022 21:09:06 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obTRO-000FYA-59 for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2022 21:09:03 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A7C87610A1; Thu, 22 Sep 2022 21:09:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4F10C433D7; Thu, 22 Sep 2022 21:08:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663880941; bh=i1G2EpapqGlrX1fXkpTvIIoPLOYCALNxOS7HLc8mTNg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SzDOPfdigGaZs8keTalK9ypEt7vWJv68KsVi39L167AwpT1mF5FAubNlIjOGdIytP KTjGiJ194xcRfqeXJDJeBi/ZxVJNjo0q1VDV9dksdV5NEdpSwl8+MBBkuUUcXHqBQO iFDPJ4lvSosBK8+DfxZsk9f9utoELX/SnmFCXV3jXCcxYkEizjaCl806FEm3cenjwJ S7pUhbFIjekRLMkknJ+TANX8BepamsHv6224B4p+ULtp4dkzpYSploLXtZbKbVsXBE Dj1Cs4mn0fX77yVdZE3t/xjb2GVt35ctQUQf/55k7bqK/DqoVxy/jg6e5s7sTMdV75 EkQGR2YRtfQTA== Date: Thu, 22 Sep 2022 22:08:56 +0100 From: Will Deacon To: Jean-Philippe Brucker , joro@8bytes.org Cc: robin.murphy@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: iommu: arm,smmu-v3: Relax order of interrupt names Message-ID: <20220922210855.GC12945@willie-the-truck> References: <20220916133145.1910549-1-jean-philippe@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220916133145.1910549-1-jean-philippe@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220922_140902_253949_9FFA7BED X-CRM114-Status: GOOD ( 19.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Sep 16, 2022 at 02:31:47PM +0100, Jean-Philippe Brucker wrote: > The QEMU devicetree uses a different order for SMMUv3 interrupt names, > and there isn't a good reason for enforcing a specific order. Since all > interrupt lines are optional, operating systems should not expect a > fixed interrupt array layout; they should instead match each interrupt > to its name individually. Besides, as a result of commit e4783856a2e8 > ("dt-bindings: iommu: arm,smmu-v3: make PRI IRQ optional"), "cmdq-sync" > and "priq" are already permutable. Relax the interrupt-names array > entirely by allowing any permutation, incidentally making the schema > more readable. > > Note that dt-validate won't allow duplicate names here so we don't need > to specify maxItems or add additional checks, it's quite neat. > > Signed-off-by: Jean-Philippe Brucker > --- > .../devicetree/bindings/iommu/arm,smmu-v3.yaml | 15 +++++---------- > 1 file changed, 5 insertions(+), 10 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml > index c57a53d87e4e..75fcf4cb52d9 100644 > --- a/Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml > +++ b/Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml > @@ -39,16 +39,11 @@ properties: > any others. > - minItems: 1 > items: > - - enum: > - - eventq # Event Queue not empty > - - gerror # Global Error activated > - - const: gerror > - - enum: > - - cmdq-sync # CMD_SYNC complete > - - priq # PRI Queue not empty > - - enum: > - - cmdq-sync > - - priq > + enum: > + - eventq # Event Queue not empty > + - gerror # Global Error activated > + - cmdq-sync # CMD_SYNC complete > + - priq # PRI Queue not empty > > '#iommu-cells': > const: 1 Acked-by: Will Deacon Joerg -- please can you take this one directly for 6.1? I don't actually have any other SMMU patches queued, so it doesn't seem worth sending a pull request just for this. Cheers, Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel