dsa: lan9303: Add flow ctrl in link_up
authorJerry Ray <jerry.ray@microchip.com>
Tue, 17 Jan 2023 20:57:03 +0000 (14:57 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2023 08:53:13 +0000 (08:53 +0000)
commit87523986570e3068b9a21632976ad7c1d04ce25f
tree0ed927d169e2afaffc6ad20254716987a0cac819
parent332bc552a402c9a319a87f0ee114db4a03a3c887
dsa: lan9303: Add flow ctrl in link_up

While the prior patch moved the adjust_link code into the
phylink_mac_link_up api, this patch cleans it up and adds the setting the
port's flow control based on the phylink_mac_link_up input parameters.

Signed-off-by: Jerry Ray <jerry.ray@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c