From nobody Tue Dec 16 07:41:39 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70C6328B4E2; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; cv=none; b=l4UQCEeg+gpiuqo7aznsab+eMTK6haYSCczfLO/WuOtmzkHgtsl5Wxxwbh1vIcpGGccXmFKyR+QQ1eHnXPsVTZnAmEtZf/Jyl0sY6TVyEaCgZwzUIG/TGz4zjH1liebO2vp3HzYvD4zNd+cL01wXxw9X9K4DG3/S/g3HKJ9jeeA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; c=relaxed/simple; bh=P9Q41cO8YGpX3BgJ7Y8X3jIUqm2KQRT2kYjQtm3/tOc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IWPZBwPWsqm7UyOvnV+CEfPg6+HgD/v/nQcJMiqLdnGPEav7yfxNsUOoEbCm3IRh9miDfBExmiC9bFk3oBEA0/wohisGhlre5mTrXoswvzupvvFDrdAg1sfs66MXHTq9tVaG/KigAG7yvyNgeTvzYUZrqosfOTxkNNn/ZP/YQwk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ob7FlLVW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ob7FlLVW" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0C82FC19421; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765750553; bh=P9Q41cO8YGpX3BgJ7Y8X3jIUqm2KQRT2kYjQtm3/tOc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ob7FlLVW42lzAs7XE5EMKcM7Hr8tK4HNdfHb0+bfaNNZOKxSeKGoE81NeQBiaTdkO puyF6c8JK6gB+Nonw2Y8913Rav1P+ktIMQIBD48tvaH/1OntCcS5i1jc+wQR+36HDB L+xAV3gBAb/lnp7JhtXV6pF3EMUbr3JfLCYqORavCZw00t6q8hGNZe7Edpr39xXJbq F8KEu7pLOSu9aRO0JAfSph3NZOfgd3bc60TZ/A7NSKM5CSYGkXuWWVacE4ZjaQ5rZW gr1Y86sbduprjMEBJv1eDSpcH3r3zM0b9My/ejhmHcQC027IN4jZ6Yv6tnr6H2EtML OlE01NOa2NYOw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC7A3D59D99; Sun, 14 Dec 2025 22:15:52 +0000 (UTC) From: Jan Petrous via B4 Relay Date: Sun, 14 Dec 2025 23:15:37 +0100 Subject: [PATCH RFC 1/4] net: stmmac: platform: read channels irq Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251214-dwmac_multi_irq-v1-1-36562ab0e9f7@oss.nxp.com> References: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> In-Reply-To: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , NXP S32 Linux Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, "Jan Petrous (OSS)" X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765750551; l=2187; i=jan.petrous@oss.nxp.com; s=20240922; h=from:subject:message-id; bh=Oc39mDasSDPGKH+yBMl8WiteW86TeFvrmazDY9RdtwU=; b=KSth4uonWM5nPcyW2B4cGYpap63loliV1langCG9n8+Pu+jcPnyVcj+IPhvWWbmVyVyc+jnad HY9aaNu+LwtCygDPmmVEIjPyzxgYbviB16ccutG5CbNJY7A9GrLGEko X-Developer-Key: i=jan.petrous@oss.nxp.com; a=ed25519; pk=Ke3wwK7rb2Me9UQRf6vR8AsfJZfhTyoDaxkUCqmSWYY= X-Endpoint-Received: by B4 Relay for jan.petrous@oss.nxp.com/20240922 with auth_id=217 X-Original-From: "Jan Petrous (OSS)" Reply-To: jan.petrous@oss.nxp.com From: "Jan Petrous (OSS)" Read IRQ resources for all channels, to allow multi IRQ mode for platform glue drivers. Signed-off-by: Jan Petrous (OSS) --- .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 38 ++++++++++++++++++= +++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/driver= s/net/ethernet/stmicro/stmmac/stmmac_platform.c index 8979a50b5507..29e40253bdfe 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -700,6 +700,9 @@ EXPORT_SYMBOL_GPL(stmmac_pltfr_find_clk); int stmmac_get_platform_resources(struct platform_device *pdev, struct stmmac_resources *stmmac_res) { + int i; + char name[8]; + memset(stmmac_res, 0, sizeof(*stmmac_res)); =20 /* Get IRQ information early to have an ability to ask for deferred @@ -743,7 +746,40 @@ int stmmac_get_platform_resources(struct platform_devi= ce *pdev, =20 stmmac_res->addr =3D devm_platform_ioremap_resource(pdev, 0); =20 - return PTR_ERR_OR_ZERO(stmmac_res->addr); + if (IS_ERR(stmmac_res->addr)) + return PTR_ERR(stmmac_res->addr); + + /* RX channels irq */ + for (i =3D 0; i < MTL_MAX_RX_QUEUES; i++) { + scnprintf(name, 8, "rx-queue-%d", i); + stmmac_res->rx_irq[i] =3D platform_get_irq_byname_optional(pdev, + name); + if (stmmac_res->rx_irq[i] < 0) { + if (stmmac_res->rx_irq[i] =3D=3D -EPROBE_DEFER) + return -EPROBE_DEFER; + dev_dbg(&pdev->dev, "IRQ rx-queue-%d not found\n", i); + + /* Stop on first unset rx-queue-%i property member */ + break; + } + } + + /* TX channels irq */ + for (i =3D 0; i < MTL_MAX_TX_QUEUES; i++) { + scnprintf(name, 8, "tx-queue-%d", i); + stmmac_res->tx_irq[i] =3D platform_get_irq_byname_optional(pdev, + name); + if (stmmac_res->tx_irq[i] < 0) { + if (stmmac_res->tx_irq[i] =3D=3D -EPROBE_DEFER) + return -EPROBE_DEFER; + dev_dbg(&pdev->dev, "IRQ tx-queue-%d not found\n", i); + + /* Stop on first unset tx-queue-%i property member */ + break; + } + } + + return 0; } EXPORT_SYMBOL_GPL(stmmac_get_platform_resources); =20 --=20 2.47.0 From nobody Tue Dec 16 07:41:39 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70BF728507B; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; cv=none; b=oKmQ57OB2iWNh1FDibmTk3oT3nNW1UdHYg8Gi/B+6PXktSDLTjTQAGQZP5yC2O4c2X3Mc4KZ3i5IYaV7Q6xygoc6XCUE666l3A6jz/Hx+3wBTkFUzI55cRta7X4RAlL8C7SG4o/97x472W63dN0lo/WrY8usnxaryjm7ATEOv3Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; c=relaxed/simple; bh=tU2+6Pb/oX5YAV0ZTflaY/39SJdBwWrzv2W2jOQyNP8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WQTCoBBqaEPYaukjI9VADsNFDgcMIoGCQlFZydMCMKmsXNIiFFwS9E/n0NOQZqQUVpW6eddpHYLDZ/O1ovJk5a9hmtQKHdnElZQA4FzSInkTqbO0PkxojWio3wujuxxgb+GW1TIc5IGFV/yCvKgsmxX6gn5n+/a0SO7abkVMI40= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BZtRIgVM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BZtRIgVM" Received: by smtp.kernel.org (Postfix) with ESMTPS id 2186EC4AF09; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765750553; bh=tU2+6Pb/oX5YAV0ZTflaY/39SJdBwWrzv2W2jOQyNP8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BZtRIgVMl+mkuEaQhFGg18fD1YbUL6hJcO35N+/DxTkBp1jSvlxDTrw1ooJfJuMBO h5EvtpX+MfNA/oXPm3niHKFpYvpE8vTz2toGz74BYIG3BxZmR2mj5LGeerwdRxEDdd 9qiBj+ZXnLHYfmbdDS6SXZrrgApG5JZ9zL9xzljQ5cs9QcV15gAbECRsR/FTgI0ZqR qnT9DlOZHql+cZezuoaokgV1PLYjE2/d3XY56IILj49+CWAwdWYqYxacfElKOZpodV OYpjQQgKqZdWVXCtd9kzGPKXuO7vcYBsF6fIGovIB1k93dtzXYMejwdQeFzvskrxeR 82FVXID0DkIGg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12CCFD5B16C; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) From: Jan Petrous via B4 Relay Date: Sun, 14 Dec 2025 23:15:38 +0100 Subject: [PATCH RFC 2/4] dt-bindings: net: nxp,s32-dwmac: Declare per-queue interrupts Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251214-dwmac_multi_irq-v1-2-36562ab0e9f7@oss.nxp.com> References: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> In-Reply-To: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , NXP S32 Linux Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, "Jan Petrous (OSS)" X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765750551; l=2770; i=jan.petrous@oss.nxp.com; s=20240922; h=from:subject:message-id; bh=IldkiiaE2HL3rzaW8zGi6tUPu8CmlMWAI7ZTb3y524w=; b=9RpivU02+xR8xHnBlK8CbtNluzrfS5Bal86SQwNE5Hv6SZvkQ9kUV3grTZEI1ic3xTNv5SLmT AcuZEZ1y4alD3hEIQQtHMiygiTY76zMCN1SlyDfY7GBBXC18x1n3JEO X-Developer-Key: i=jan.petrous@oss.nxp.com; a=ed25519; pk=Ke3wwK7rb2Me9UQRf6vR8AsfJZfhTyoDaxkUCqmSWYY= X-Endpoint-Received: by B4 Relay for jan.petrous@oss.nxp.com/20240922 with auth_id=217 X-Original-From: "Jan Petrous (OSS)" Reply-To: jan.petrous@oss.nxp.com From: "Jan Petrous (OSS)" The DWMAC IP on supported SoCs has connected queue-based IRQ lines. Signed-off-by: Jan Petrous (OSS) --- .../devicetree/bindings/net/nxp,s32-dwmac.yaml | 40 ++++++++++++++++++= +--- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml b/Doc= umentation/devicetree/bindings/net/nxp,s32-dwmac.yaml index 2b8b74c5feec..b5e42fa49110 100644 --- a/Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml @@ -33,10 +33,22 @@ properties: - description: GMAC PHY mode control register =20 interrupts: - maxItems: 1 + minItems: 11 + maxItems: 11 =20 interrupt-names: - const: macirq + - items: + - const: macirq + - const: rx-queue-0 + - const: tx-queue-0 + - const: rx-queue-1 + - const: tx-queue-1 + - const: rx-queue-2 + - const: tx-queue-2 + - const: rx-queue-3 + - const: tx-queue-3 + - const: rx-queue-4 + - const: tx-queue-4 =20 clocks: items: @@ -75,8 +87,28 @@ examples: reg =3D <0x0 0x4033c000 0x0 0x2000>, /* gmac IP */ <0x0 0x4007c004 0x0 0x4>; /* GMAC_0_CTRL_STS */ interrupt-parent =3D <&gic>; - interrupts =3D ; - interrupt-names =3D "macirq"; + interrupts =3D , + /* CHN 0: tx, rx */ + , + , + /* CHN 1: tx, rx */ + , + , + /* CHN 2: tx, rx */ + , + , + /* CHN 3: tx, rx */ + , + , + /* CHN 4: tx, rx */ + , + ; + interrupt-names =3D "macirq", + "tx-queue-0", "rx-queue-0", + "tx-queue-1", "rx-queue-1", + "tx-queue-2", "rx-queue-2", + "tx-queue-3", "rx-queue-3", + "tx-queue-4", "rx-queue-4", snps,mtl-rx-config =3D <&mtl_rx_setup>; snps,mtl-tx-config =3D <&mtl_tx_setup>; clocks =3D <&clks 24>, <&clks 17>, <&clks 16>, <&clks 15>; --=20 2.47.0 From nobody Tue Dec 16 07:41:39 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60B2316F0FE; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; cv=none; b=kE2BKEvN0/19tMcUk714e60cODM8dO+PT/Sgn1qLWKkp6Ne3o4f10SGnzuNyH1hfDmejI13aSCBlwn7iVya8b6YCZAGUaJryowWCrncJ2YUn4FWDu2GbBGJs0paFo5tfR3Bau0KqjDF1hy/A0UVhLmLVeVdNPHaxlCKTOymvUP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; c=relaxed/simple; bh=xAE3SdcCNhNMaf5t5SGdZjBQMk53A0jUjKIoAMv5grM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LCu91gRaXhXc6ROEkNvCqOebgcSoaBbu/V++CW+gh5eMU0rMkPZI04cCV0nGrOxdONvt30LqEt0ds6fgWBCEr+d7OMawk0Gae0Tf1OvKUjPvv47K3Vy2MtM6FdiJlqJQ8po5rJDP3Ria05d30GOGjHMR+AsIpzh7xgyvnwQphTQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H/sHOgrT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H/sHOgrT" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3A9EEC2BC9E; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765750553; bh=xAE3SdcCNhNMaf5t5SGdZjBQMk53A0jUjKIoAMv5grM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=H/sHOgrT0Hj6npHTQ8v61Sacj5i+QD7x+pJx//Tqvjzf5p5RWL75oWgOl+FOygQcc Bg8I3omBF3PEivHu6TDKj1ns8ipOZpZrMK/pfYDwf4QlS56xdnFmFcsDpu8JS+EQ2T Mr16DJf4ntHWSLOEcLEtiNsFlzyG/RicacXGUFvCnyQNccEM8jzvfRSVyf+tpjNtfG l+Vi04uxZFotE9H4bn7zCZpkrFqg6AXMKjx57YIhMOWNVQsG835MDE6R2W2RSTpWc/ Jzn0mBZTSu2AMtcOc6sNf3Pch3AxdY6UhR9zwt6j1f5++3/Durrn8kWMlIIDCya82z giF6pRhc0cIKw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E97AD59D99; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) From: Jan Petrous via B4 Relay Date: Sun, 14 Dec 2025 23:15:39 +0100 Subject: [PATCH RFC 3/4] arm64: dts: s32: set Ethernet channel irqs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251214-dwmac_multi_irq-v1-3-36562ab0e9f7@oss.nxp.com> References: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> In-Reply-To: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , NXP S32 Linux Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, "Jan Petrous (OSS)" X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765750551; l=3616; i=jan.petrous@oss.nxp.com; s=20240922; h=from:subject:message-id; bh=VqRCzvT/ie24a509gKuqO+XkXlLrEXP3sOyJ2rn9ZMs=; b=fOVN8vvxbJA07QMEQLWZCQaN3CxrBEzX0oc8ExuaT+WdQiyk/WwJZNL5nUH/jMcQYvafCcrig 4qiXnffq76wAx/3WcyOXuxXVZrKhxhMz8PvSdKNNfeMMYjGiHG69FsB X-Developer-Key: i=jan.petrous@oss.nxp.com; a=ed25519; pk=Ke3wwK7rb2Me9UQRf6vR8AsfJZfhTyoDaxkUCqmSWYY= X-Endpoint-Received: by B4 Relay for jan.petrous@oss.nxp.com/20240922 with auth_id=217 X-Original-From: "Jan Petrous (OSS)" Reply-To: jan.petrous@oss.nxp.com From: "Jan Petrous (OSS)" The GMAC Ethernet controller found on S32G2/S32G3 and S32R45 contains up to 5 RX and 5 TX channels. It can operate in two interrupt modes: 1) Sharing irq mode: only one irq line is used for all channels. 2) Multiple irq mode: every channel uses two irq lines, one for RX and second for TX. Specify all irq twins for all channels. Signed-off-by: Jan Petrous (OSS) --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 24 ++++++++++++++++++++++-- arch/arm64/boot/dts/freescale/s32g3.dtsi | 24 ++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts= /freescale/s32g2.dtsi index 51d00dac12de..ea615fc5ccd9 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -732,8 +732,28 @@ gmac0: ethernet@4033c000 { reg =3D <0x4033c000 0x2000>, /* gmac IP */ <0x4007c004 0x4>; /* GMAC_0_CTRL_STS */ interrupt-parent =3D <&gic>; - interrupts =3D ; - interrupt-names =3D "macirq"; + interrupts =3D , + /* CHN 0: tx, rx */ + , + , + /* CHN 1: tx, rx */ + , + , + /* CHN 2: tx, rx */ + , + , + /* CHN 3: tx, rx */ + , + , + /* CHN 4: tx, rx */ + , + ; + interrupt-names =3D "macirq", + "tx-queue-0", "rx-queue-0", + "tx-queue-1", "rx-queue-1", + "tx-queue-2", "rx-queue-2", + "tx-queue-3", "rx-queue-3", + "tx-queue-4", "rx-queue-4"; snps,mtl-rx-config =3D <&mtl_rx_setup>; snps,mtl-tx-config =3D <&mtl_tx_setup>; status =3D "disabled"; diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts= /freescale/s32g3.dtsi index eff7673e7f34..ecbec49c7344 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -809,8 +809,28 @@ gmac0: ethernet@4033c000 { reg =3D <0x4033c000 0x2000>, /* gmac IP */ <0x4007c004 0x4>; /* GMAC_0_CTRL_STS */ interrupt-parent =3D <&gic>; - interrupts =3D ; - interrupt-names =3D "macirq"; + interrupts =3D , + /* CHN 0: tx, rx */ + , + , + /* CHN 1: tx, rx */ + , + , + /* CHN 2: tx, rx */ + , + , + /* CHN 3: tx, rx */ + , + , + /* CHN 4: tx, rx */ + , + ; + interrupt-names =3D "macirq", + "tx-queue-0", "rx-queue-0", + "tx-queue-1", "rx-queue-1", + "tx-queue-2", "rx-queue-2", + "tx-queue-3", "rx-queue-3", + "tx-queue-4", "rx-queue-4"; snps,mtl-rx-config =3D <&mtl_rx_setup>; snps,mtl-tx-config =3D <&mtl_tx_setup>; status =3D "disabled"; --=20 2.47.0 From nobody Tue Dec 16 07:41:39 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D06E31578F; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; cv=none; b=YIEaATG2AXRWe2ggxEI4oqPRe8YWC0s+CvF0H9N4uoioMBUaniY9KdkpjAsxAqIFEREdyZi5603lgyRNITjIoH1eGBqjK6J3McsEcCj1MSvgZt27f6B2NGITHaIPVikGsa+dIxsUhJn5aAma4njKYy4BTNnzJJlPhJSOk1CCXr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765750553; c=relaxed/simple; bh=+dB1ubbQUZbbOBra3vCG6KF5yaKYR81O/ni3EMy7Nb8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SKy2xOqboFduy6ainlzamUZ3nEn4y4ZtRP0x87Smgdig2Xf8gGTDGvRTf/ns06Ih4utINUbDNSM7ncr99oplgFgPxvwe2xHF3zT1HP/zqNu49tdaln4env25zqHEbrcIO/udNChwx5vtfXcddk5N1ud9WE+dCKVp+VfpEmvekXA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EJwZiL8/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EJwZiL8/" Received: by smtp.kernel.org (Postfix) with ESMTPS id 56912C2BCB3; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765750553; bh=+dB1ubbQUZbbOBra3vCG6KF5yaKYR81O/ni3EMy7Nb8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=EJwZiL8/o8OAqNHR8DmIpjMQJmZS6GarMS4Dh7gOfFm84cO8ExZqijdqRoTaxFQ+N zUkS8m0lWsuZ6MoMnByvAHLj3smihk0bdyZscRIKvklUQot/Ig9SSdHHiqP9UQsAYQ fs4AMbK83DrtyqxpTsQ8ZOF1BirIzZnmaBt1u4JCMrqua5086jLVJCGo2WSzJj6meG 8d3gYkLQIdnHKz7MfXT5a14XDp8DEFPFjpLBd+RN/qziaJuWQpTazfaF+9iAPiykeW cuZTT0EvzgXMlnAeN15MX85386AIAZtZNY2Nb+8oqqNJxzORlvf2Ka7arrTkLJNcCS xGXIgwScvgxqQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4810AD5B16F; Sun, 14 Dec 2025 22:15:53 +0000 (UTC) From: Jan Petrous via B4 Relay Date: Sun, 14 Dec 2025 23:15:40 +0100 Subject: [PATCH RFC 4/4] stmmac: s32: enable multi irqs mode Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251214-dwmac_multi_irq-v1-4-36562ab0e9f7@oss.nxp.com> References: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> In-Reply-To: <20251214-dwmac_multi_irq-v1-0-36562ab0e9f7@oss.nxp.com> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , NXP S32 Linux Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, "Jan Petrous (OSS)" X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765750551; l=1135; i=jan.petrous@oss.nxp.com; s=20240922; h=from:subject:message-id; bh=uKYPU0Ih9OcJADxPjnsSZTg/aiN/NSWTJ7b+174uNp0=; b=ccktjokTsHbY0A8sCrOp0tvellHMrF7o/nyJheYG8kgkcnDKKoYdHjDKtsJCQl7WUSZQnL3hC etvrjrpdbBbDMgbIUC/YcKNTWUWoFvuM3l4eTc66bLQcMfsxAg2TFRv X-Developer-Key: i=jan.petrous@oss.nxp.com; a=ed25519; pk=Ke3wwK7rb2Me9UQRf6vR8AsfJZfhTyoDaxkUCqmSWYY= X-Endpoint-Received: by B4 Relay for jan.petrous@oss.nxp.com/20240922 with auth_id=217 X-Original-From: "Jan Petrous (OSS)" Reply-To: jan.petrous@oss.nxp.com From: "Jan Petrous (OSS)" Signalize support for multi irq mode. From now, if yoused old DT node, without channel IRQs set, the driver fails to init with the following error: [4.925420] s32-dwmac 4033c000.ethernet eth0: stmmac_request_irq_multi_msi: = alloc rx-0 MSI -6 (error: -22) Signed-off-by: Jan Petrous (OSS) --- drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c b/drivers/net/= ethernet/stmicro/stmmac/dwmac-s32.c index 5a485ee98fa7..284e2067a00b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c @@ -2,7 +2,7 @@ /* * NXP S32G/R GMAC glue layer * - * Copyright 2019-2024 NXP + * Copyright 2019-2025 NXP * */ =20 @@ -149,6 +149,7 @@ static int s32_dwmac_probe(struct platform_device *pdev) plat->core_type =3D DWMAC_CORE_GMAC4; plat->pmt =3D 1; plat->flags |=3D STMMAC_FLAG_SPH_DISABLE; + plat->flags |=3D STMMAC_FLAG_MULTI_MSI_EN; plat->rx_fifo_size =3D 20480; plat->tx_fifo_size =3D 20480; =20 --=20 2.47.0