]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: hellcreek: convert to phylink_generic_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 30 Nov 2021 13:10:11 +0000 (13:10 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Dec 2021 02:58:00 +0000 (18:58 -0800)
commitd25a5c11258bc42b2a14c415c8c380a145a6527f
tree400560aef893195d32f68a5368853aed2d156e61
parent8d03a18fc8213234d03afb1b2b13f5a6c3b9049e
net: dsa: hellcreek: convert to phylink_generic_validate()

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

The switch actually only supports MII and RGMII, but as phylib defaults
to GMII, we need to include this interface mode to keep existing DT
working.

Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Tested-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/hirschmann/hellcreek.c