diff options
| author | Joao Pinto <Joao.Pinto@synopsys.com> | 2017-04-03 18:34:04 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-04-05 16:47:26 +0300 |
| commit | 03cf65a95937772b27d8a82836fec2b827ea1ecb (patch) | |
| tree | eebd96d66c7457e154b9305e148f9dcff7292164 | |
| parent | 1f37b177fd36790be4f281d538a8c9de67013606 (diff) | |
| download | linux-03cf65a95937772b27d8a82836fec2b827ea1ecb.tar.xz | |
net: stmmac: rx queue to dma channel mapping fix
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 <jpinto@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index c1c63197ff73..7cbda41dc996 100644 --- 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 */ |
