diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-02-22 10:16:02 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-22 11:03:02 +0000 |
commit | dda1c25751fa22ecbfa8eaa17efb296ff5017408 (patch) | |
tree | 4dddcd4f9de403db7bf4d89ce0c1843504aafd6a /drivers/net/dsa/b53/b53_priv.h | |
parent | 341b672c99b9e69d7e8695979cb8a93f6ae58500 (diff) |
net: dsa: b53: populate supported_interfaces and mac_capabilities
Populate the supported interfaces and MAC capabilities for the Broadcom
B53 DSA switches in preparation to using these for the generic
validation functionality.
The interface modes are derived from:
- b53_serdes_phylink_validate()
- SRAB mux configuration
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_priv.h')
-rw-r--r-- | drivers/net/dsa/b53/b53_priv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/b53/b53_priv.h b/drivers/net/dsa/b53/b53_priv.h index b41dc8ac2ca8..b9d1b4819c5f 100644 --- a/drivers/net/dsa/b53/b53_priv.h +++ b/drivers/net/dsa/b53/b53_priv.h @@ -46,6 +46,8 @@ struct b53_io_ops { int (*phy_write16)(struct b53_device *dev, int addr, int reg, u16 value); int (*irq_enable)(struct b53_device *dev, int port); void (*irq_disable)(struct b53_device *dev, int port); + void (*phylink_get_caps)(struct b53_device *dev, int port, + struct phylink_config *config); u8 (*serdes_map_lane)(struct b53_device *dev, int port); int (*serdes_link_state)(struct b53_device *dev, int port, struct phylink_link_state *state); |