projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f37b17
)
net: stmmac: rx queue to dma channel mapping fix
author
Joao Pinto
<
[email protected]
>
Mon, 3 Apr 2017 15:34:04 +0000
(16:34 +0100)
committer
David S. Miller
<
[email protected]
>
Wed, 5 Apr 2017 13:47:26 +0000
(06:47 -0700)
In hardware configurations where multiple queues are active,
the rx queue needs to be mapped into a dma channel, even if
a single rx queue is used.
Signed-off-by: Joao Pinto <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index c1c63197ff73e32eb62e45b049f30b0634e4cdfe..7cbda41dc9969950a828ccaf3333bf659d78f7bc 100644
(file)
--- a/
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@
-2001,7
+2001,7
@@
static void stmmac_mtl_configuration(struct stmmac_priv *priv)
stmmac_configure_cbs(priv);
/* Map RX MTL to DMA channels */
- if (
rx_queues_count > 1 &&
priv->hw->mac->map_mtl_to_dma)
+ if (priv->hw->mac->map_mtl_to_dma)
stmmac_rx_queue_dma_chan_map(priv);
/* Enable MAC RX Queues */