diff options
author | Joao Pinto <Joao.Pinto@synopsys.com> | 2017-03-15 14:04:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-16 00:44:32 +0300 |
commit | 3c55d4d08bc9e94901a26eb57c9aa0b8c76a18c0 (patch) | |
tree | 8091d8867a65eed02c88133ba1495b33e1ff8aa6 /drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |
parent | d62a107a4f154c9aa826dbe03ac2322a389b37b5 (diff) | |
download | linux-3c55d4d08bc9e94901a26eb57c9aa0b8c76a18c0.tar.xz |
net: stmmac: rx watchdog config prepared for multiple queues
This patch adds rx watchdog configuration for all queues.
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 79a792a0c12e..00d0f5ea7682 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -1915,6 +1915,7 @@ static void stmmac_mtl_configuration(struct stmmac_priv *priv) static int stmmac_hw_setup(struct net_device *dev, bool init_ptp) { struct stmmac_priv *priv = netdev_priv(dev); + u32 rx_cnt = priv->plat->rx_queues_to_use; int ret; /* DMA initialization and SW reset */ @@ -1988,7 +1989,7 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp) if ((priv->use_riwt) && (priv->hw->dma->rx_watchdog)) { priv->rx_riwt = MAX_DMA_RIWT; - priv->hw->dma->rx_watchdog(priv->ioaddr, MAX_DMA_RIWT); + priv->hw->dma->rx_watchdog(priv->ioaddr, MAX_DMA_RIWT, rx_cnt); } if (priv->hw->pcs && priv->hw->mac->pcs_ctrl_ane) |