Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp97252rwl; Wed, 9 Aug 2023 11:29:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIzYQfEQktJMLxrZPt4O+fmUBO+llrb/iLbICCyIZ0cqYjLQkjShxbRhi0Hi9QbLpal3IA X-Received: by 2002:aa7:d154:0:b0:523:a09:c092 with SMTP id r20-20020aa7d154000000b005230a09c092mr18793edo.24.1691605744151; Wed, 09 Aug 2023 11:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691605744; cv=none; d=google.com; s=arc-20160816; b=Bp8MmScL2mGZNrUxDCR4Nb8SiVrchBNJ8MOct0gluQ+rHxjucWgF2hfORecWRz9dnD apqspQEDmVbg55EKhyQ9BF3Tdou2PfJUXfF3Psq/ZlPiItCi1CIKSr59MiLMKuk2yKTz oBnWc3FFn1lvdTSQt2A2n4N2reTjUQG8iAMQTAXriIcFKV96cJB+uHZuTPPGPxXGRL11 JuAZbCGL5DVQxLMOQ5UXzCVe8dbHtEeJxkpfg0WvecledPHa2XiTWk6mcqopJDi2ITNp Tl+afTQ4r++9p9KQb8R1CzNw148pawr+shlyfPgTJoRbBxI8sceKRxYHz4dTDptdjfjR NVHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=a4mbJQl6Lu16FH9EBk0JuVyXrtV9ew39skdkRiFOZDQ=; fh=UEVvRAFK6gmZxZNnJDUC7AmNk/iU78fiWA23OmiDi44=; b=hdcR7EsfVeaWMyRkWfWe7NzgYSlzK7gdvo36EUPM650iHDv0jdRROCL+7A7gCojuPT 2xCVnGrW+BSs1HaHgv7VFx52mFqo32QJmYkQ3tknKpR+odPYLn3Yh64uuLHxrwmqF7hP xPWiYQ6j6x3SMGjsTvs007VTwYV5qircuN/50WsltBinJqxD3QHaKRhKHLTv6OnohANf 6QxIIWwAeMNEPGkj5kTSfp6nhQFdjvrDk4ZMN5FLifalxA04sMgLEltoS0iRadu62eEg c9UGZvh5x5qOIKnEHonV2gFZ7mYPQ3uqxdZOi2C5XKjayvVbmpX0seETOsu+CmcoS38o GAKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qVNvJwMf; 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 b1-20020aa7df81000000b005234c92f5e8si2091932edy.62.2023.08.09.11.28.40; Wed, 09 Aug 2023 11:29: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=qVNvJwMf; 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 S232298AbjHIRBy (ORCPT + 99 others); Wed, 9 Aug 2023 13:01:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjHIRBt (ORCPT ); Wed, 9 Aug 2023 13:01:49 -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 79955DF; Wed, 9 Aug 2023 10:01: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 0F7896415A; Wed, 9 Aug 2023 17:01:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2394C433C7; Wed, 9 Aug 2023 17:01:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691600508; bh=LFjNs8fNnfJcH2w+sep24uTLzAFqDRt8//EcSlD2l18=; h=From:To:Cc:Subject:Date:From; b=qVNvJwMfwetQ1u816Yp27of8fuCmX/XzC5rEIND4icIW4LlQ2OjjgsyIbGAOzNBWy XYfp7FnqqfoF7FvpkZp5SszFqSkJQ7if/17JFGFPqh+72eR/hmc6iWD7zo3VUP1MlE ikQwyNFZPLPU8wo0cO0S6zyMvaujCRd8Agkr3MVa5XAhBLRNHAb4HcDrMh45P9GWQ3 gE7ubSFVAfg48V59oLiEpdHAB4HAar922L+d0HzMXzuWnJhDkMgEitURp+CIExF+17 fAUtUI7ChDb5UWkGbOeJpO4K1bM8McAFbXccJQWlCUw/7SuFYUG4tfnHpAr2OM7mJ4 IYNasGRQe7KSw== From: Jisheng Zhang To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu Cc: 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: [PATCH net-next v3 00/10] net: stmmac: add new features to xgmac Date: Thu, 10 Aug 2023 00:49:57 +0800 Message-Id: <20230809165007.1439-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 This series add below new features to xgmac: correct RX COE parsing add more feature parsing from hw cap enlarge C22 ADDR and rx/tx channels support parse safety ce/ue irq from DT support per channel irq Since v2: - check per channel irq by (res->rx_irq[0] > 0 && res->tx_irq[0] > 0) rather than (res->rx_irq[0] && res->tx_irq[0]) - bypass if (irq <= 0) when request rx/tx irq Since v1: - remove "_irq" suffix from safety irqs dt binding - remove "snps,per-channel-interrupt" dt binding, check the channel irq instead. - more renaming about "msi" to reflect per channel irq isn't MSI specific Jisheng Zhang (10): net: stmmac: correct RX COE parsing for xgmac net: stmmac: xgmac: add more feature parsing from hw cap net: stmmac: mdio: enlarge the max XGMAC C22 ADDR to 31 net: stmmac: enlarge max rx/tx queues and channels to 16 net: stmmac: reflect multi irqs for tx/rx channels and mac and safety net: stmmac: xgmac: support per-channel irq dt-bindings: net: snps,dwmac: add safety irq support net: stmmac: platform: support parsing safety irqs from DT dt-bindings: net: snps,dwmac: add per channel irq support net: stmmac: platform: support parsing per channel irq from DT .../devicetree/bindings/net/snps,dwmac.yaml | 37 ++++++++++++ .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac4_dma.c | 2 +- .../net/ethernet/stmicro/stmmac/dwxgmac2.h | 5 ++ .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 5 +- .../ethernet/stmicro/stmmac/dwxgmac2_dma.c | 37 +++++++----- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 58 ++++++++++--------- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 35 +++++++++++ include/linux/stmmac.h | 10 ++-- 10 files changed, 142 insertions(+), 53 deletions(-) -- 2.40.1