mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: dsa: populate supported_interfaces member
Add a new DSA switch operation, phylink_get_interfaces, which should fill in which PHY_INTERFACE_MODE_* are supported by given port. Use this before phylink_create() to fill phylinks supported_interfaces member, allowing phylink to determine which PHY_INTERFACE_MODEs are supported. Signed-off-by: Marek Behún <kabel@kernel.org> [tweaked patch and description to add more complete support -- rmk] Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ebed1cf5b8
commit
c07c6e8eb4
3 changed files with 10 additions and 0 deletions
|
@ -645,6 +645,8 @@ struct dsa_switch_ops {
|
|||
/*
|
||||
* PHYLINK integration
|
||||
*/
|
||||
void (*phylink_get_interfaces)(struct dsa_switch *ds, int port,
|
||||
unsigned long *supported_interfaces);
|
||||
void (*phylink_validate)(struct dsa_switch *ds, int port,
|
||||
unsigned long *supported,
|
||||
struct phylink_link_state *state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue