]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70ca9e7bc26dbea55324f23014f8a42e2044f9cf
treecc245a61fb2ed6b91bdb6fbde6052b4b0cd09fc7
parentd25a5c11258bc42b2a14c415c8c380a145a6527f
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