]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac4: fix flow control issue
authorBiao Huang <biao.huang@mediatek.com>
Mon, 3 Jun 2019 01:58:06 +0000 (09:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 00:03:14 +0000 (17:03 -0700)
commit0bb0791bd4b2f9b6bf2f8a65a86c1c74c390f3b4
tree20820c29c7113c5875ec86b9e3b6c83406a60e66
parentdd2f395b81632ec8c2d78310637a02dff6ca55d1
net: stmmac: dwmac4: fix flow control issue

Current dwmac4_flow_ctrl will not clear
GMAC_RX_FLOW_CTRL_RFE/GMAC_RX_FLOW_CTRL_RFE bits,
so MAC hw will keep flow control on although expecting
flow control off by ethtool. Add codes to fix it.

Fixes: ec92cb93097f ("stmmac: add GMAC4 core support")
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c