diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 6e2a8fa07da5..5ef493aa5387 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |||
@@ -2755,7 +2755,11 @@ static int stmmac_hw_init(struct stmmac_priv *priv) | |||
2755 | priv->plat->enh_desc = priv->dma_cap.enh_desc; | 2755 | priv->plat->enh_desc = priv->dma_cap.enh_desc; |
2756 | priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up; | 2756 | priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up; |
2757 | 2757 | ||
2758 | priv->plat->tx_coe = priv->dma_cap.tx_coe; | 2758 | /* TXCOE doesn't work in thresh DMA mode */ |
2759 | if (priv->plat->force_thresh_dma_mode) | ||
2760 | priv->plat->tx_coe = 0; | ||
2761 | else | ||
2762 | priv->plat->tx_coe = priv->dma_cap.tx_coe; | ||
2759 | 2763 | ||
2760 | if (priv->dma_cap.rx_coe_type2) | 2764 | if (priv->dma_cap.rx_coe_type2) |
2761 | priv->plat->rx_coe = STMMAC_RX_COE_TYPE2; | 2765 | priv->plat->rx_coe = STMMAC_RX_COE_TYPE2; |