Commit 625aefac authored by Michael Krummsdorf's avatar Michael Krummsdorf Committed by Jakub Kicinski

net: dsa: mv88e6xxx: fix usable ports on 88e6020

The switch has 4 ports with 2 internal PHYs, but ports are numbered up
to 6, with ports 0, 1, 5 and 6 being usable.

Fixes: 71d94a43 ("net: dsa: mv88e6xxx: add support for MV88E6020 switch")
Signed-off-by: default avatarMichael Krummsdorf <michael.krummsdorf@tq-group.com>
Signed-off-by: default avatarMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240326123655.40666-1-matthias.schiffer@ew.tq-group.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 09ba28e1
...@@ -5503,8 +5503,12 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = { ...@@ -5503,8 +5503,12 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = {
.family = MV88E6XXX_FAMILY_6250, .family = MV88E6XXX_FAMILY_6250,
.name = "Marvell 88E6020", .name = "Marvell 88E6020",
.num_databases = 64, .num_databases = 64,
.num_ports = 4, /* Ports 2-4 are not routed to pins
* => usable ports 0, 1, 5, 6
*/
.num_ports = 7,
.num_internal_phys = 2, .num_internal_phys = 2,
.invalid_port_mask = BIT(2) | BIT(3) | BIT(4),
.max_vid = 4095, .max_vid = 4095,
.port_base_addr = 0x8, .port_base_addr = 0x8,
.phy_base_addr = 0x0, .phy_base_addr = 0x0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment