net: dsa: sja1105: move MAC configuration to .phylink_mac_link_up
authorVladimir Oltean <olteanv@gmail.com>
Thu, 12 Mar 2020 12:19:51 +0000 (12:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 03:49:48 +0000 (20:49 -0700)
commitec8582d1349a3d984a0369c1573ae5c2a7acd0ed
treee363f8e6ce0c9288d212c178b6b3ad5e8bbd5d37
parent724d021566684dba67aed23d46613ab4fb022152
net: dsa: sja1105: move MAC configuration to .phylink_mac_link_up

The switches supported so far by the driver only have non-SerDes ports,
so they should be configured in the PHYLINK callback that provides the
resolved PHY link parameters.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c