Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp55353rwb; Thu, 22 Sep 2022 14:21:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6EUNhep4Ec+uMMOu2AKlV375VD9w1Xdf9I1RC+uiEX+nMiZRfXgFT4npc9Pm79xAGYZDv1 X-Received: by 2002:a17:906:8a46:b0:781:7171:74d0 with SMTP id gx6-20020a1709068a4600b00781717174d0mr4300792ejc.214.1663881664835; Thu, 22 Sep 2022 14:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663881664; cv=none; d=google.com; s=arc-20160816; b=cIrHrXZjpsNLwPADIUSl6cZ9gzSd4wvIS4YWoefdzfFsS7KD0QbztKYgaU4dKslaIK +f4YJi9TBTHU6vI7um8tqBflWSkS4yejd0vjh1ZuBzcL1qnXu6gd1YD0aHfNURfj02Nk 083eMZP7V4idIWVO0vJ7gIwnBaPEy79C/UEgan8r6cisRtJiCGCMFsmcK9KqqnVI0NkE LCPAwRveJlpEA51I0xCZiqFKpT0J5fyhMqpGc+OoU/LGGuIiL5lAFa2z2K7FIvOLgRNO XaB9W+Sv+k4Lj4aUsfYpgsMNnrqcE6HRNasTPTriEHquFNbkki1Qner1GEGrE4QLUYBi 2mTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=s4yi/rvQfVwRn5ccM2jwJD/LNd0Kom/H6f+S49/RciY=; b=qcnh2fUy1XoALFehc53dTfpcImAeEiLqwm6b8B1g65zrpuI2dgGXX4OwXuHkarFBPy LZHsHaihJQ4Cvnpqy2dYKkrc5nJ6BAIY/1lhvwn33Crou91EotHQEc1nyteeymbORNFu hH9gXhjybvS23L3yaaYRvxtfvUdERfqfGkyAW8q2A43vOl5KodaV8JtGJaKhuMqFwtIS 3NBZLrocY0im8/nvTpqcfvLDct4Rh/nyPEvZGodugd+Y3a/E796M0L73bCESEbj1xtwh cG+gjZSZegguEdDRyxFC17zGOqRK+6IkpDq1c5xaDr4yil9obqdMZ5191yuIICEvA7N/ 9oVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SzDOPfdi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv11-20020a17090760cb00b007309350f2f9si7334724ejc.555.2022.09.22.14.20.39; Thu, 22 Sep 2022 14:21:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SzDOPfdi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230426AbiIVVJJ (ORCPT + 99 others); Thu, 22 Sep 2022 17:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbiIVVJF (ORCPT ); Thu, 22 Sep 2022 17:09:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453E7111DDA; Thu, 22 Sep 2022 14:09:04 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id B656FB823B8; Thu, 22 Sep 2022 21:09:02 +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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220916133145.1910549-1-jean-philippe@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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