net: stmmac: dwmac-mediatek: disable rx watchdog
authorBiao Huang <biao.huang@mediatek.com>
Mon, 3 Jun 2019 01:58:04 +0000 (09:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 00:03:14 +0000 (17:03 -0700)
disable rx watchdog for dwmac-mediatek, then the hw will
issue a rx interrupt once receiving a packet, so the responding time
for rx path will be reduced.

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c

index b84269e..79f2ee3 100644 (file)
@@ -356,6 +356,7 @@ static int mediatek_dwmac_probe(struct platform_device *pdev)
        plat_dat->has_gmac4 = 1;
        plat_dat->has_gmac = 0;
        plat_dat->pmt = 0;
+       plat_dat->riwt_off = 1;
        plat_dat->maxmtu = ETH_DATA_LEN;
        plat_dat->bsp_priv = priv_plat;
        plat_dat->init = mediatek_dwmac_init;