From patchwork Wed Aug 16 15:29:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13355422 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E890DC001B0 for ; Wed, 16 Aug 2023 15:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P6z3oAFDjg3iWNOglyR/WU/iSKTd/ZK91MwQrlOg7XA=; b=4i1iQR647HkkXC x3MKrOwUFJncylvwYZv7WX0gA9SOAOfC+Sdi9pj7dwpK1rABErX4JHRVx/jZgYetczdXMBriTqCcK 0oUHWO74DWTbbLcQFKiadPIU2n8KNMLpifwXodevs9x4wCf7p8VQir5WYdfdZN8Tk5xfzDh7YiUSG 1TEAxTzfJCltwwHaTuCwT2+SJ/XKNix6yH6aBMlxQ/PUJ8jE5KiFOMm2Fjc66v8zsxu6ZfhH8mjS6 5VVyx2J4Me+NzbAqTuIrjwp6IkzpuLPpstjkg7klskBg0DcF4/tp7xlDuXxXcoLhB9OFL6cYNRmhO U5waNUb+WAy9mtisZuQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWIe3-004VhH-1q; Wed, 16 Aug 2023 15:41:15 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qWIe1-004Vgo-0s for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2023 15:41:14 +0000 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 0E7FB61737; Wed, 16 Aug 2023 15:41:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0F1EC433C8; Wed, 16 Aug 2023 15:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692200471; bh=E/IKYTzpQNaTIjxwmCo0tbwLoswgeWU73USgeaiUoRc=; h=From:To:Cc:Subject:Date:From; b=TljYul4JFTwRzGTmjIOHRlZZQr9Fi9g0zZjcfNrIgEaDromvz+slL8+dX/zmWBAbI liD/G1qoAvyIkn53it76Hw0PmJkqFRrtMOtrQc/ycA1ASxULJ8sh4bZsR1hD7FvFt5 4AA6M5BtKrOiW9LYqwxtBoRmxy2zDt4GqgHJvVnGZkc+RlvNpqcrs4iEGQe1z3sgHA FCVW1bRlTvptubJLDdptiyTeqWfUE4mNhM7gOrInUMgOQVvj/quI70mQFRWMUkR9La 2gd/NF65Ytfv2d0O94APf5/LTJpMT/4EUHePJ9UbGDsVM7K753pvLh/KaA0s2LZTwl KEcd+ZEsSIPMw== 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 v4 0/9] net: stmmac: add new features to xgmac Date: Wed, 16 Aug 2023 23:29:17 +0800 Message-Id: <20230816152926.4093-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230816_084113_390548_097E1034 X-CRM114-Status: GOOD ( 11.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 v3: - collect Acked-by tag - remove patch which enlarges the max XGMAC C22 ADDR to 31 since it's merged - s/stmmac_request_irq_multi/stmmac_request_irq_multi_channel - update the dt-binding to refelct the optional per-channel irq: - use enum - add additionalItems and maxItems to fix the "interupt-names .. is too long" 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 (9): net: stmmac: correct RX COE parsing for xgmac net: stmmac: xgmac: add more feature parsing from hw cap 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 | 77 ++++++++++++++++++- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac4_dma.c | 2 +- .../net/ethernet/stmicro/stmmac/dwxgmac2.h | 2 + .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 5 +- .../ethernet/stmicro/stmmac/dwxgmac2_dma.c | 34 ++++---- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 56 +++++++------- .../ethernet/stmicro/stmmac/stmmac_platform.c | 35 +++++++++ include/linux/stmmac.h | 10 +-- 9 files changed, 172 insertions(+), 53 deletions(-)