net: dsa: bcm_sf2: convert to phylink_generic_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 2 Feb 2022 10:24:13 +0000 (10:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Feb 2022 11:47:06 +0000 (11:47 +0000)
commit927c9daea9b56cb65fb3d5dfaa3abd96b6c2c4b4
tree2507c18a7d8fe80ff51898ac819657226527e1bd
parent2a229ef44e738feb64a365affa6ece91646307eb
net: dsa: bcm_sf2: convert to phylink_generic_validate()

Populate the supported interfaces and MAC capabilities for the bcm_sf2
DSA switch and remove the old validate implementation to allow DSA to
use phylink_generic_validate() for this switch driver.

The exclusion of Gigabit linkmodes for MII and Reverse MII links is
handled within phylink_generic_validate() in phylink, so there is no
need to make them conditional on the interface mode in the driver.

Thanks to Florian Fainelli for suggesting how to populate the supported
interfaces.

Link: https://lore.kernel.org/r/3b3fed98-0c82-99e9-dc72-09fe01c2bcf3@gmail.com
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c