* [PATCH] ethernet: stmmac: fix for none child queue node for tx node
@ 2022-04-28 0:59 Jianqun Xu
0 siblings, 0 replies; only message in thread
From: Jianqun Xu @ 2022-04-28 0:59 UTC (permalink / raw)
To: peppe.cavallaro, alexandre.torgue, joabreu
Cc: davem, kuba, mcoquelin.stm32, netdev, linux-stm32,
linux-arm-kernel, linux-kernel, Jianqun Xu
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@rock-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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-28 1:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 0:59 [PATCH] ethernet: stmmac: fix for none child queue node for tx node Jianqun Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®