diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-02-17 21:30:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-18 14:28:32 +0300 |
commit | bde018222c6b084ac32933a9f933581dd83da18e (patch) | |
tree | 39d85c1d1d8778134f3d2bd455f808f14d17bb9a /include | |
parent | 8aba73ef44ebec1f6af399dc8058689a79f84ae2 (diff) | |
download | linux-bde018222c6b084ac32933a9f933581dd83da18e.tar.xz |
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-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 c8626dec970c..bc6eef6af810 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -788,6 +788,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, |