]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: dsa: felix: set TX flow control according to the phylink_mac_link_up resolution
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 8 Jun 2021 11:16:51 +0000 (14:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 23:35:14 +0000 (16:35 -0700)
commitde274be32cb288d96b91494aeaafccc34cf4e00f
treeba2f09cb1ded13f42613444d3a3a9287ccefdc01
parent96bffe70231c871d1b39ecc44288c96bed66422b
net: dsa: felix: set TX flow control according to the phylink_mac_link_up resolution

Instead of relying on the static initialization done by ocelot_init_port()
which enables flow control unconditionally, set SYS_PAUSE_CFG_PAUSE_ENA
according to the parameters negotiated by the PHY.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c