net: stmmac: Set MAC's flow control register to reflect current settings
authorGoh, Wei Sheng <wei.sheng.goh@intel.com>
Wed, 23 Nov 2022 10:51:10 +0000 (18:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Nov 2022 09:33:47 +0000 (09:33 +0000)
commitcc3d2b5fc0d6f8ad8a52da5ea679e5c2ec2adbd4
tree302944db3476b97d6b4bc7b2d6fd89465a222c42
parent2a83891130512dafb321418a8e7c9c09268d8c59
net: stmmac: Set MAC's flow control register to reflect current settings

Currently, pause frame register GMAC_RX_FLOW_CTRL_RFE is not updated
correctly when 'ethtool -A <IFACE> autoneg off rx off tx off' command
is issued. This fix ensures the flow control change is reflected directly
in the GMAC_RX_FLOW_CTRL_RFE register.

Fixes: 46f69ded988d ("net: stmmac: Use resolved link config in mac_link_up()")
Cc: <stable@vger.kernel.org> # 5.10.x
Signed-off-by: Goh, Wei Sheng <wei.sheng.goh@intel.com>
Signed-off-by: Noor Azura Ahmad Tarmizi <noor.azura.ahmad.tarmizi@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c