Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1308361rwl; Thu, 10 Aug 2023 09:15:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbdwDLKjitCq2fcgquH0nbigg8ZKUYMbj+ae0JxHyxyHR+j3WPyILzuuO0lm/xrLVVWIsw X-Received: by 2002:a17:906:73c2:b0:99c:10e8:52d6 with SMTP id n2-20020a17090673c200b0099c10e852d6mr2651723ejl.39.1691684101720; Thu, 10 Aug 2023 09:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691684101; cv=none; d=google.com; s=arc-20160816; b=cvrxtpQzluZ2iVTO9bbXw2Q0bf5/ackshy0enZuk1kbNUfnLIDQJbTGB2fnuGq7Alb FAml2vd8hMkQyhLC2R/yq0FX8UpuRGZwF8cK1BWHwMjCf/WnngF/IeYoxytOKEZ2UvNn miz24Ft07GAXGqPoxzBuRJx1GPu9MVRoVIDApLTCGhycxKMNy9HfdFyUNa0sQDeTaK+d JrC+pUFXqrYuIQYdA/jHlusPMQPR00HjSJ/cXQJO6rjKpK5Y8m4rKGvXt0b72ipJY0Cp D1n3InWaavND4WOdPUJjkKn89Tbn+dhRpSlWJRtkNG4GyyEkn9elpwqyiuBZuWqNzdM2 3/wg== 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=fjGxqQasTjDTLZET6Zy8aYpPHcrdxEu5tB65PdYWV4g=; fh=hSwmfC+wi3dy9UJ9cfPwLIEf1IlnQaMj4IpQ/ZaUhBE=; b=NOb4PwGHuK8EQ3HE7PKcoKaZdxNDooUlaCE5RRE0izEGjIKZdfYd+oamvp/OfZ8erI AJ0if/NXSXqLQZ/LW4tgOTH8ARSbGLxuztAffnNebYTHr55hkNAW/w03Ig7wiC2VaCzu s6SFtXjw/w4eKvHGjDB+RBGLeez+wxKsfSEDi8ZTFekY1KI31Q9B92mJoupZKFciuyli cc7EfQW33Yw2io0tz0fF8roQqBHqLUYD3atKPXYrGxdzaC8evSwFArzD+IFl1vYYg/We AfyJ3wmw6wylrf4+UxEvAIsDfzNjMmPjOTubXokCEYpLS3bYdaO7PXoJeOzOXkxVHDg9 Vwhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ov/ISR/V"; 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 j23-20020a170906475700b009888cc2ac57si1723629ejs.284.2023.08.10.09.14.28; Thu, 10 Aug 2023 09:15:01 -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="ov/ISR/V"; 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 S236535AbjHJQLC (ORCPT + 99 others); Thu, 10 Aug 2023 12:11:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236590AbjHJQKu (ORCPT ); Thu, 10 Aug 2023 12:10:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E121630F7; Thu, 10 Aug 2023 09:10:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 78ABB6574D; Thu, 10 Aug 2023 16:10:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B37CFC433C7; Thu, 10 Aug 2023 16:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691683848; bh=hU3zEJqh3v/qDDuwBKbxUUN5LenjFbRiKXk6hZBPbkY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ov/ISR/VUh/E/BVRWOz0QgqVAECA8Syehms+PpjS07xKA5ZI4OqwY/vYO29RAgZ7h dMAU7YmZWhRsa/3euTGYup3zU1fvMTUcrjz77+Ur1N8y6GtGlntBPqLM5TChgU7ThY OxDPsQYgxk/tvNAaCHRqt4tczeafnCEjkZXnDC/PNP7NBEiBKf1FiN+Tsq96u/2FR6 K1wTqHVUhhngmhhalIBcvQF2+Sd1ALTB11SbYC44LuKc2ZVtZGQh0X1RBSPsOw5Ego ZfzW4Kt95N/6WpNykRZNlwS/G3BUBmnlJBM5bpSa9nrSIKhPWqmhf7RT3vwva3nWfZ Oshf8AHsJxJ9A== Date: Thu, 10 Aug 2023 23:59:06 +0800 From: Jisheng Zhang To: Conor Dooley Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next v2 09/10] dt-bindings: net: snps,dwmac: add per channel irq support Message-ID: References: <20230807164151.1130-1-jszhang@kernel.org> <20230807164151.1130-10-jszhang@kernel.org> <20230808-clapper-corncob-0af7afa65752@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230808-clapper-corncob-0af7afa65752@spud> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Tue, Aug 08, 2023 at 08:39:58AM +0100, Conor Dooley wrote: > On Tue, Aug 08, 2023 at 12:41:50AM +0800, Jisheng Zhang wrote: > > The IP supports per channel interrupt, add support for this usage case. > > > > Signed-off-by: Jisheng Zhang > > --- > > .../devicetree/bindings/net/snps,dwmac.yaml | 33 +++++++++++++++++++ > > 1 file changed, 33 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > index 5d81042f5634..5a63302ad200 100644 > > --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > @@ -109,6 +109,7 @@ properties: > > - description: The interrupt that occurs when Rx exits the LPI state > > - description: The interrupt that occurs when Safety Feature Correctible Errors happen > > - description: The interrupt that occurs when Safety Feature Uncorrectible Errors happen > > + - description: All of the rx/tx per-channel interrupts > > > > interrupt-names: > > minItems: 1 > > @@ -118,6 +119,38 @@ properties: > > - const: eth_lpi > > - const: sfty_ce > > - const: sfty_ue > > + - const: rx0 > > + - const: rx1 > > + - const: rx2 > > + - const: rx3 > > + - const: rx4 > > + - const: rx5 > > + - const: rx6 > > + - const: rx7 > > + - const: rx8 > > + - const: rx9 > > + - const: rx10 > > + - const: rx11 > > + - const: rx12 > > + - const: rx13 > > + - const: rx14 > > + - const: rx15 > > + - const: tx0 > > + - const: tx1 > > + - const: tx2 > > + - const: tx3 > > + - const: tx4 > > + - const: tx5 > > + - const: tx6 > > + - const: tx7 > > + - const: tx8 > > + - const: tx9 > > + - const: tx10 > > + - const: tx11 > > + - const: tx12 > > + - const: tx13 > > + - const: tx14 > > + - const: tx15 > > I don't think Rob's comment about having added 2 interrupts but 32 > interrupt names has been resolved. I misunderstood Rob's comment. Now I'm not sure whether dt-binding can support regex or something or not, or let ask for advice in the following way: how could I write the dt-binding in this case? I didn't find similar examples so far. I'm not sure listing possible description and const properties for all channel interrupts is suitable. > Did you actually test putting this many interrupts into a node? > AFAICT, any more than 6 will cause complaints. I tried 12rx and 12tx interrupts in a node, didn't see dtc warning. so I guess the complaints are from dtb check? I will try to reproduce them. > > Thanks, > Conor.