net: dsa: lantiq: convert to phylink_generic_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 30 Nov 2021 13:10:16 +0000 (13:10 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Dec 2021 02:58:01 +0000 (18:58 -0800)
commita2279b08c7f4c97ad93916dae5c02eeac34b7f2c
treecc245a61fb2ed6b91bdb6fbde6052b4b0cd09fc7
parent1c9e7fd2a579c7c3288264f6e90b9c0a3388dbf9
net: dsa: lantiq: convert to phylink_generic_validate()

Populate the supported interfaces and MAC capabilities for the Lantiq
DSA switches 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, Reverse MII and Reduced 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.

Reviewed-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq_gswip.c