]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c39ce98affb18e06d0742e6be5e1d73dcc66c4e
tree5cd2799eb616f146efad772512a60f9dc42f602d
parent921e4b4fa1485c2cc5ea8453b01741804de1c6b8
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: 0004575175cf ("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