net: dsa: felix: re-enable TX flow control in ocelot_port_flush()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 8 Jun 2021 11:15:35 +0000 (14:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 23:34:23 +0000 (16:34 -0700)
commit1650bdb1c516c248fb06f6d076559ff6437a5853
tree5cd2799eb616f146efad772512a60f9dc42f602d
parent49bfcbfd989a8f1f23e705759a6bb099de2cff9f
net: dsa: felix: re-enable TX flow control in ocelot_port_flush()

Because flow control is set up statically in ocelot_init_port(), and not
in phylink_mac_link_up(), what happens is that after the blamed commit,
the flow control remains disabled after the port flushing procedure.

Fixes: eb4733d7cffc ("net: dsa: felix: implement port flushing on .phylink_mac_link_down")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c