diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-06-20 23:37:36 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-06-21 10:57:29 +0100 |
commit | f58ffdfcae6816791088043793397d0a8876eaf0 (patch) | |
tree | 4014ba5bf3e0a09a55a0793dd9c756dedce5cc2d /include/net | |
parent | 5c17680ea9fcb1a7cf664279fe1bcf51934dcdaa (diff) |
net: dsa: add support for setting default speed and interface
Add support for retrieving the interface mode from the DSA driver,
and derive the fastest speed from the MAC capabilities.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 934958fda962..020cfd1e84f8 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -833,7 +833,8 @@ struct dsa_switch_ops { * PHYLINK integration */ void (*phylink_get_caps)(struct dsa_switch *ds, int port, - struct phylink_config *config); + struct phylink_config *config, + phy_interface_t *default_interface); void (*phylink_validate)(struct dsa_switch *ds, int port, unsigned long *supported, struct phylink_link_state *state); |