Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1185369rwb; Wed, 26 Jul 2023 08:45:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEr1/SpsJSYOU7BHMbAKeAfuWq/p5iFCQMf5LvuosppUxkM+jcJFToAyTdg5hfsPduMhRKi X-Received: by 2002:a05:6a20:2588:b0:12f:1f1f:b506 with SMTP id k8-20020a056a20258800b0012f1f1fb506mr2209536pzd.21.1690386303229; Wed, 26 Jul 2023 08:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690386303; cv=none; d=google.com; s=arc-20160816; b=rnOUacwM3WMy58bx9wZp/9zJ9b1KsvjvFWt8dGDYNg8DBmqUfe6LmnPTIAW6mZtskx 1JC7KqXcsPjypY3/DxLOmHErLFAAaaq4Tojm/P4Og51HwwiMGHgmWdPKQNV5rzfQbRd4 hjcaQM5+czZ01KwdjcDlS8azXa2pftnYuW9+ojE4R+t59TIaSZe2p368/n57743AlUVS eBmxNrexus8VB/+DMQGxPx5u2dVyUJtVBVTg5giOYV3PFuBPUdm+TKhjwjNSEJgsK9/v h0nlLcCJksliVLgtQoEb69NM4qhMN3kaBc/SbhVYRzQZEe+by00zkdLKgf9M5OGe6w5T Qc0Q== 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=rvkBIlZVAIclZuX9ORG/8CslQ9iaJTdNly76RcCi6j0=; fh=YUYnI9Nx6cayzXE+hoKdsUmKh2jWp9Ra7kmFRyQxqgQ=; b=z0BpRc8uHltMqylHNCGrQBWg/h4mGJfGd1dSOaws0xOHfkLP13gG4+8+qVMBL2s4iq zgodwXwK70V51iEZ4J1VGN7KtHyJfVJAnaOTmwFyJ4I0LjKplxT+BXKt8BDXXVUWD/r9 Oqj0EHAqUKgqChocS9STLFFVsOghxWltJV6yTfuVLMlreMF8LY/1fQ6XMGkfQEMcYwhA 6KfmAwbjLfTkA3Ws9NJkXNY5BCRuWpcZM1S4FY7EvY4o0C3YU+dZIq7flzY5nj5+S6vY I+PHr4hKeRLFs3f8NiiBJWhAxDwxj0292WHiioFuhSbXPzhkgv0q69i/qgPd1Ui7Ux1r UFtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ajWOBzMz; 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 k14-20020a636f0e000000b0051322a8d2aesi13269155pgc.110.2023.07.26.08.44.49; Wed, 26 Jul 2023 08:45:03 -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=ajWOBzMz; 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 S234824AbjGZPYu (ORCPT + 99 others); Wed, 26 Jul 2023 11:24:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbjGZPYn (ORCPT ); Wed, 26 Jul 2023 11:24:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF76D1FF0; Wed, 26 Jul 2023 08:24:42 -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 6D83461B54; Wed, 26 Jul 2023 15:24:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8ED6C433C7; Wed, 26 Jul 2023 15:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690385081; bh=XtQHPjwlUAYxGYo7V7WNdtEo+xDINh3xf8oWKZdFtPM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ajWOBzMzGhBoqzfc5/DW9aF/gzYa0wM+vSx2pxzmI/7dY0miIeIIjqjyBGxE0JzWb 0+Be9ZPNi4QMYnzvKxNL06mLMrPnlHI6r1AFOiBDJf0fub79NUx64XIhQxnbfb0qAS 0D2Qj+MXNiJeESeORBdztPo+ffbinai/Z+J5lIIuGm3cxF998g2HPKBJc4e4AKgdHr SWC1FzJ4EbDQNDK/SsYHmtcsCxrAyNLRVB7/n0Be8lW9ED2pkKPxE56jwkFYjX1z3x FdGILD3G7swQqW17sCU6lryDnJAMjG5uHjqnHSQ90YgI369/OKpvKUMfyTRSF281Do G3Z8h4PW665iA== Received: (nullmailer pid 1474009 invoked by uid 1000); Wed, 26 Jul 2023 15:24:39 -0000 Date: Wed, 26 Jul 2023 09:24:39 -0600 From: Rob Herring To: Jisheng Zhang Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , 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 09/10] dt-bindings: net: snps,dwmac: add per channel irq support Message-ID: <20230726152439.GA1471409-robh@kernel.org> References: <20230723161029.1345-1-jszhang@kernel.org> <20230723161029.1345-10-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230723161029.1345-10-jszhang@kernel.org> 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,T_SCC_BODY_TEXT_LINE 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 Mon, Jul 24, 2023 at 12:10:28AM +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 | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > index bb80ca205d26..525210c2c06c 100644 > --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > @@ -101,6 +101,11 @@ properties: > minItems: 1 > maxItems: 2 > > + snps,per-channel-interrupt: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + Indicates that Rx and Tx complete will generate a unique interrupt for each channel Can't you determine this based on the number of interrupts or interrupt names? > + > interrupts: > minItems: 1 > items: > @@ -109,6 +114,8 @@ 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 per-channel interrupts > + - description: All of the tx per-channel interrupts You added 2 interrupts here and... > > interrupt-names: > minItems: 1 > @@ -118,6 +125,22 @@ properties: > - const: eth_lpi > - const: sfty_ce_irq > - const: sfty_ue_irq > + - const: rx0 > + - const: rx1 > + - const: rx2 > + - const: rx3 > + - const: rx4 > + - const: rx5 > + - const: rx6 > + - const: rx7 > + - const: tx0 > + - const: tx1 > + - const: tx2 > + - const: tx3 > + - const: tx4 > + - const: tx5 > + - const: tx6 > + - const: tx7 And 16 here? > > clocks: > minItems: 1 > -- > 2.40.1 >