diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-04-29 19:43:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-01 19:51:06 +0300 |
commit | 79396934e289dbc501316c1d1f975bb4c88ae460 (patch) | |
tree | 0d3c98d3b922f664db289d59ad7432e7bde47527 /drivers/net/dsa/b53/b53_serdes.h | |
parent | 6b292a04c694573a302686323fe15b1c7e673e5b (diff) | |
download | linux-79396934e289dbc501316c1d1f975bb4c88ae460.tar.xz |
net: dsa: b53: convert to phylink_pcs
Convert B53 to use phylink_pcs for the serdes rather than hooking it
into the MAC-layer callbacks.
Fixes: 81c1681cbb9f ("net: dsa: b53: mark as non-legacy")
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/b53/b53_serdes.h')
-rw-r--r-- | drivers/net/dsa/b53/b53_serdes.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/dsa/b53/b53_serdes.h b/drivers/net/dsa/b53/b53_serdes.h index f47d5caa7557..ef81f5da5f81 100644 --- a/drivers/net/dsa/b53/b53_serdes.h +++ b/drivers/net/dsa/b53/b53_serdes.h @@ -107,14 +107,11 @@ static inline u8 b53_serdes_map_lane(struct b53_device *dev, int port) return dev->ops->serdes_map_lane(dev, port); } -int b53_serdes_get_link(struct b53_device *dev, int port); -int b53_serdes_link_state(struct b53_device *dev, int port, - struct phylink_link_state *state); -void b53_serdes_config(struct b53_device *dev, int port, unsigned int mode, - const struct phylink_link_state *state); -void b53_serdes_an_restart(struct b53_device *dev, int port); void b53_serdes_link_set(struct b53_device *dev, int port, unsigned int mode, phy_interface_t interface, bool link_up); +struct phylink_pcs *b53_serdes_phylink_mac_select_pcs(struct b53_device *dev, + int port, + phy_interface_t interface); void b53_serdes_phylink_get_caps(struct b53_device *dev, int port, struct phylink_config *config); #if IS_ENABLED(CONFIG_B53_SERDES) |