diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-11-22 13:13:58 +0000 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-01-15 12:44:30 +0000 |
commit | 958859ec0eed5ac65256240b101450ba279e283f (patch) | |
tree | b22b3c5de05ed0d710f86189367a2074c2282e55 /include/net/dsa.h | |
parent | e26f75852e1db6698c97eeeaaa9e9700c9217e62 (diff) |
net: dsa: add support for phylink mac_select_pcs()
Add DSA support for the phylink mac_select_pcs() method so DSA drivers
can return provide phylink with the appropriate PCS for the PHY
interface mode.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 8ca9d50cbbc2..637b85d2b5d1 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -650,6 +650,9 @@ struct dsa_switch_ops { void (*phylink_validate)(struct dsa_switch *ds, int port, unsigned long *supported, struct phylink_link_state *state); + struct phylink_pcs *(*phylink_mac_select_pcs)(struct dsa_switch *ds, + int port, + phy_interface_t iface); int (*phylink_mac_link_state)(struct dsa_switch *ds, int port, struct phylink_link_state *state); void (*phylink_mac_config)(struct dsa_switch *ds, int port, |