Skip to content

Commit

Permalink
fix non-traffic in kernel 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Apr 30, 2019
1 parent ff4697c commit 790265e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/mediatek/mtk_eth_soc.c
Expand Up @@ -1785,6 +1785,7 @@ static void mtk_poll_controller(struct net_device *dev)
static int mtk_start_dma(struct mtk_eth *eth)
{
int err;
u32 rx_2b_offet = (NET_IP_ALIGN == 2) ? MTK_RX_2B_OFFSET : 0;

err = mtk_dma_init(eth);
if (err) {
Expand All @@ -1800,7 +1801,7 @@ static int mtk_start_dma(struct mtk_eth *eth)
MTK_QDMA_GLO_CFG);

mtk_w32(eth,
MTK_RX_DMA_EN | MTK_RX_2B_OFFSET |
MTK_RX_DMA_EN | rx_2b_offet |
MTK_RX_BT_32DWORDS | MTK_MULTI_EN,
MTK_PDMA_GLO_CFG);

Expand Down

0 comments on commit 790265e

Please sign in to comment.