[PATCH v5 02/10] net: stmmac: Use interrupt mode INTM=1 for per channel irq
Simon Horman
horms at kernel.org
Fri Oct 24 10:00:30 PDT 2025
On Fri, Oct 24, 2025 at 01:49:54PM +0200, Steffen Trumtrar wrote:
...
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
...
> @@ -746,6 +750,22 @@ int stmmac_get_platform_resources(struct platform_device *pdev,
> if (stmmac_res->irq < 0)
> return stmmac_res->irq;
>
> + /* For RX Channel */
> + for (i = 0; i < MTL_MAX_RX_QUEUES; i++) {
> + sprintf(irq_name, "%s%d", "macirq_rx", i);
> + stmmac_res->rx_irq[i] = platform_get_irq_byname(pdev, irq_name);
> + if (stmmac_res->rx_irq[i] < 0)
> + break;
> + }
> +
> + /* For TX Channel */
> + for (i = 0; i < MTL_MAX_TX_QUEUES; i++) {
> + sprintf(irq_name, "%s%d", "macirq_tx", i);
> + stmmac_res->tx_irq[i] = platform_get_irq_byname(pdev, irq_name);
> + if (stmmac_res->tx_irq[i] < 0)
> + break;
nit: The two lines above abbove to be indented a bit too much.
> + }
> +
> /* On some platforms e.g. SPEAr the wake up irq differs from the mac irq
> * The external wake up irq can be passed through the platform code
> * named as "eth_wake_irq"
...
More information about the linux-arm-kernel
mailing list