net: dsa: mt7530: populate supported_interfaces and mac_capabilities
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 11 Apr 2022 09:46:01 +0000 (10:46 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Apr 2022 08:33:14 +0000 (10:33 +0200)
commit59c2215f36040ac0040f9cfb6fbcc4cb2a705f11
treeb4220be2367703e394f0ac3522e38c2c4890941b
parent66f862563ed68717dfd84e808ca12705ed275ced
net: dsa: mt7530: populate supported_interfaces and mac_capabilities

Populate the supported interfaces and MAC capabilities for mt7530,
mt7531 and mt7621 DSA switches. Filling this in will enable phylink
to pre-check the PHY interface mode against the the supported
interfaces bitmap prior to calling the validate function, and will
eventually allow us to convert to using the generic validation.

Tested-by: Marek BehĂșn <kabel@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h