diff options
author | Biao Huang <biao.huang@mediatek.com> | 2019-06-03 04:58:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-06 03:03:14 +0300 |
commit | 792232390b891a97500eb3cccd54d0c7ca8e4981 (patch) | |
tree | c3f2443f7c2b5d0c8b695c7d7c86bd9cc54d22d6 /drivers/net | |
parent | 5aa070dc504989368881bdfc3ca4c2b29d22b520 (diff) | |
download | linux-792232390b891a97500eb3cccd54d0c7ca8e4981.tar.xz |
net: stmmac: dwmac-mediatek: disable rx watchdog
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c index b84269edd1b4..79f2ee37afed 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c @@ -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; |