From patchwork Mon Aug 7 16:41:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13344593 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 A046BC04A6A for ; Mon, 7 Aug 2023 16:54:03 +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=zy1dm3NMSYCR83dOCT/SwiWaCyi8kVa9P06PSLs7Zfw=; b=n8UKRahG2NHF6S ejYhdKwdirJ9T6ds3llSsZgKL1Zjbn8SUYSWbKgYYNrPUg6NY9+8gFuCU82uHeeVFvUiELnTo0U3d SdncJHsYw+Ldr0qFsA77DG4a1dN7L6Vv43mSQf2093uGmuMjSILIpanuYpwT+g1tF002QETkndHdC No04FwfKB2yQsZDgdgSd4OB2v816aswhUXcNhz7Zoiu9ormPjgA/rcz3KjU4/CTRf0pJ2SR2HuM5i HY0O80z1yFSk3OF4QGqe4HjvjI/ju49qDZhh4mHbsFDrjM2ehIbVK2n4ErxZfFMRgLBais6rlFDcz q69Y3mBXtYZOkTMlQqlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qT3UB-000EWQ-1d; Mon, 07 Aug 2023 16:53:39 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qT3U7-000EU7-31 for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2023 16:53:37 +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 1AF6061FA1; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230807_095336_026399_9A74069B X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. 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 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(-)