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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Jun 2021 12:42:42 +0000 (14:42 +0200)
commitdb5f4adc93bd028f2ccfbd6fc4fe67d1bc15c113
treeb19f2a94f13e743ba014cb3765ccac2deb19d700
parent5946fbf48355f5a8caeff72580c7658da5966b86
net: dsa: felix: re-enable TX flow control in ocelot_port_flush()

[ Upstream commit 1650bdb1c516c248fb06f6d076559ff6437a5853 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mscc/ocelot.c