net: phylink: provide phylink_pcs_config() and phylink_pcs_link_up()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 23 May 2023 15:31:50 +0000 (16:31 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 May 2023 05:23:29 +0000 (22:23 -0700)
commitae4899bb486f73e6d3d55a82b40482b2c5529a98
tree11d37139f5a4b54b4ef3b04143f2b8ed21a8c821
parent8a5ad2ea6b8778c2c6713182641a85a2b497675f
net: phylink: provide phylink_pcs_config() and phylink_pcs_link_up()

Add two helper functions for calling PCS methods. phylink_pcs_config()
allows us to handle PCS configuration specifics in one location, rather
than the two call sites. phylink_pcs_link_up() gives us consistency.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1q1TzK-007Exd-Rs@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c