net: dsa: mv88e6xxx: Fix validation of built-in PHYs on 6095/6097
authorTobias Waldekranz <tobias@waldekranz.com>
Sun, 13 Feb 2022 18:51:54 +0000 (19:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Feb 2022 05:13:54 +0000 (21:13 -0800)
commitd0b78ab1ca357628ffb92cf8a0af00b4ffdc4e3b
tree9ac673c5c97ff4316d0ee1d70f48f9bf3c817268
parent12d8c11198af191d06d02b01624d84c669ef7231
net: dsa: mv88e6xxx: Fix validation of built-in PHYs on 6095/6097

These chips have 8 built-in FE PHYs and 3 SERDES interfaces that can
run at 1G. With the blamed commit, the built-in PHYs could no longer
be connected to, using an MII PHY interface mode.

Create a separate .phylink_get_caps callback for these chips, which
takes the FE/GE split into consideration.

Fixes: 2ee84cfefb1e ("net: dsa: mv88e6xxx: convert to phylink_generic_validate()")
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20220213185154.3262207-1-tobias@waldekranz.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c