net: dsa: microchip: Move *_port_setup code to dsa_switch_ops::port_setup()
authorOleksij Rempel <o.rempel@pengutronix.de>
Thu, 14 Sep 2023 13:11:44 +0000 (15:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Sep 2023 13:28:34 +0000 (14:28 +0100)
commit152992279e416553f7b421ab22406ae0b1c71aba
tree9878a8310b1eb8b541eefd0719b7356172c8b6dd
parente03f0dfbddd516687ad5582882037d0462f268cc
net: dsa: microchip: Move *_port_setup code to dsa_switch_ops::port_setup()

Right now, the *_port_setup code is in dsa_switch_ops::port_enable(),
which is not the best place for it. This patch moves it to a more
suitable place, dsa_switch_ops::port_setup(), to match the function's
purpose and name.

This patch is a preparation for coming ACL support patch.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c