Skip to content

Commit 1833d8a

Browse files
prashlekuba-moo
authored andcommitted
net: dsa: mv88e6xxx: Fix the max_vid definition for the MV88E6361
According to the Marvell datasheet the 88E6361 has two VTU pages (4k VIDs per page) so the max_vid should be 8191, not 4095. In the current implementation mv88e6xxx_vtu_walk() gives unexpected results because of this error. I verified that mv88e6xxx_vtu_walk() works correctly on the MV88E6361 with this patch in place. Fixes: 12899f2 ("net: dsa: mv88e6xxx: enable support for 88E6361 switch") Signed-off-by: Peter Rashleigh <peter@rashleigh.ca> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20241014204342.5852-1-peter@rashleigh.ca Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent e8c526f commit 1833d8a

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+1
-1
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6347,7 +6347,7 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = {
63476347
.invalid_port_mask = BIT(1) | BIT(2) | BIT(8),
63486348
.num_internal_phys = 5,
63496349
.internal_phys_offset = 3,
6350-
.max_vid = 4095,
6350+
.max_vid = 8191,
63516351
.max_sid = 63,
63526352
.port_base_addr = 0x0,
63536353
.phy_base_addr = 0x0,

0 commit comments

Comments
 (0)