]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit1c9e7fd2a579c7c3288264f6e90b9c0a3388dbf9
tree400560aef893195d32f68a5368853aed2d156e61
parent5938bce4b6e2146d5194badd7ecf0acc6bf877fc
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