[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220428005928.525921-1-jay.xu@rock-chips.com>
Date: Thu, 28 Apr 2022 08:59:28 +0800
From: Jianqun Xu <jay.xu@...k-chips.com>
To: peppe.cavallaro@...com, alexandre.torgue@...com,
joabreu@...opsys.com
Cc: davem@...emloft.net, kuba@...nel.org, mcoquelin.stm32@...il.com,
netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Jianqun Xu <jay.xu@...k-chips.com>
Subject: [PATCH] ethernet: stmmac: fix for none child queue node for tx node
In case of nothing to be set for tx node result in no child queue node
for the tx node, this patch init the queue to tx_queues_to_use instead
of 0 to support dt file set no queue node for tx node.
Signed-off-by: Jianqun Xu <jay.xu@...k-chips.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index 2d8c095f3856..dfe2375bc3c6 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -235,7 +235,7 @@ static int stmmac_mtl_setup(struct platform_device *pdev,
else
plat->tx_sched_algorithm = MTL_TX_ALGORITHM_SP;
- queue = 0;
+ queue = plat->tx_queues_to_use;
/* Processing individual TX queue config */
for_each_child_of_node(tx_node, q_node) {
--
2.25.1
Powered by blists - more mailing lists