]> 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)
commit0c7349ad2be97a600456e3f69aaa71e9703104fb
tree5cd2799eb616f146efad772512a60f9dc42f602d
parentb98e58164cc007f9650b17314abc3170ece251b9
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: 39b516a6cad1 ("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