Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3326875rwb; Mon, 7 Aug 2023 11:36:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGz7F11atq5ERo/zfOP3wB0UkODjzEeIOWPPGxt91RMLfENosySyb2x5A3uYrovIbV7Q1ui X-Received: by 2002:a05:6a00:23cc:b0:687:52ae:34ee with SMTP id g12-20020a056a0023cc00b0068752ae34eemr10302022pfc.5.1691433392960; Mon, 07 Aug 2023 11:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691433392; cv=none; d=google.com; s=arc-20160816; b=lAnXrGKixsErTRtKbhlIiPZDG7XmFjSb7d/ngbQ+VMOEK11Ukn62WU0gZCMo/KkXK7 X2coRwjRnubjqjIzmGQrwxfxGCj+ZLpFm+iSS1DnGKrWbiZXOEwUS+Ik3Lk6dFkuV0tR NYaGHH5AOlJBeGv/NQd7XRCuCHw6RdCjVnczOWzYZVXP+LsgKE/lwHuye4yt1Bd7BOeM wu2E9cM/+WImODGpxwm2c+bGrSr8iBVDpZ1g0QlMMk4QD7j1vZaFP5IyusUs0jdar6fF /ZMWq0ho2U+hiGty0ALB4wg0y1YBOZrPxKGSRZ+/Pf8oZVnK4paxtCQYmJ1kGTd1RH8L oz4A== 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=Xs5j3OOsTxAUPZNLLxPzm4HG8KTSF6zUE+wJSSfvyA0=; fh=UEVvRAFK6gmZxZNnJDUC7AmNk/iU78fiWA23OmiDi44=; b=xYzf806BVQI610Pyoo8Qv2th4kYHVDMvD30G4fPWMIj6EudQz2qfKXFN+4am6wTUVs lc69WstGoQKVXKbi2NML19LPvdDBjj2J95GMX1oMwUC3H0Ovgz971NapSmF7DCBbjvwK 4/UdiFxzjMuCKJlRnMawvQW4xx0YDBTMahVXae1z0/naUrkIaCMcZ3f+yKXbISqbm8Hk 5WySfvogRwug9T7WLNka4gY99IpdPcPsJCm6xzeLee1ZMlEIjG8xMoPUfZptjsnYqh2t zeG+OAXVLRERYqaKaF7fU/EZV2lZVQhZFJVWRr0LDU2HUh2o/JBKxGs5cFY/5hPmVk7O VMzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C7g/EqYD"; 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 f21-20020a056a00239500b006878c40d5c1si6117502pfc.369.2023.08.07.11.36.21; Mon, 07 Aug 2023 11:36:32 -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="C7g/EqYD"; 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 S231938AbjHGQxx (ORCPT + 99 others); Mon, 7 Aug 2023 12:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231934AbjHGQxu (ORCPT ); Mon, 7 Aug 2023 12:53: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 92E36199D; Mon, 7 Aug 2023 09:53:35 -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 2237E61FA9; Mon, 7 Aug 2023 16:53:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BE16C433C9; Mon, 7 Aug 2023 16:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691427214; bh=Wnt22onGXX5fFsf3cU0FGcECVvk6TAii1a47Y662QXw=; h=From:To:Cc:Subject:Date:From; b=C7g/EqYDBIt4vKUoQuX2S2+EFe4KDtTh+0uf2AIQN3Jjbo8OfWRiyx0yGAGu3ZESc OW0rSRWa+i3zEouGhgyiAOzB0fr1X7jF92eXvC/ath8XynHFCIWK9ZxKauTj6jlYbs qzsjMQCWcpuVAmVdcWFD9BpcvuJVykYzZ7DcDWPxVlQjofrsyXJ7l5y0nRPC1+Bx8r 6OmHQN4LNi+gpGHvZ5Tpa/6rdcyQPN/rHR3kVDzY0x0IeUUv2fWpM0tEgYuWaGivQF gvtsHjysyRYfkjMYa+iSNNfuHO3dojL8xhYPeedqfaFCxGMIFq/sPZk0MGuL8ldd1/ LDyLCCpmptcOg== 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 v2 00/10] net: stmmac: add new features to xgmac Date: Tue, 8 Aug 2023 00:41:41 +0800 Message-Id: <20230807164151.1130-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=-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 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 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 | 54 ++++++++++--------- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 35 ++++++++++++ include/linux/stmmac.h | 10 ++-- 10 files changed, 140 insertions(+), 51 deletions(-) -- 2.40.1