diff options
author | Vladimir Oltean <[email protected]> | 2022-03-18 21:58:12 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-03-21 15:52:02 -0700 |
commit | a53cbe5d628c0cbaa76b23a292c6b32e6c2ddcfe (patch) | |
tree | 1243dc0ff42b5c6a672aade804c703022b98d0e8 | |
parent | 7ee776cdc7a0b87b766f4cace50c36fe405922cf (diff) |
net: dsa: felix: allow PHY_INTERFACE_MODE_INTERNAL on port 5
The Felix switch has 6 ports, 2 of which are internal.
Due to some misunderstanding, my initial suggestion for
vsc9959_port_modes[]:
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/#24718277
got translated by Colin into a 5-port array, leading to an all-zero port
mode mask for port 5.
Fixes: acf242fc739e ("net: dsa: felix: remove prevalidate_phy_mode interface")
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r-- | drivers/net/dsa/ocelot/felix_vsc9959.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c index ead3316742f6..62d52e0874e9 100644 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c @@ -37,6 +37,7 @@ static const u32 vsc9959_port_modes[VSC9959_NUM_PORTS] = { VSC9959_PORT_MODE_SERDES, VSC9959_PORT_MODE_SERDES, OCELOT_PORT_MODE_INTERNAL, + OCELOT_PORT_MODE_INTERNAL, }; static const u32 vsc9959_ana_regmap[] = { |