Skip to content

Commit 30796d0

Browse files
Noltarikuba-moo
authored andcommitted
net: dsa: b53: mmap: fix device tree support
CPU port should also be enabled in order to get a working switch. Fixes: a5538a7 ("net: dsa: b53: mmap: Add device tree support") Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20230316172807.460146-1-noltari@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 478a351 commit 30796d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/b53/b53_mmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static int b53_mmap_probe_of(struct platform_device *pdev,
263263
if (of_property_read_u32(of_port, "reg", &reg))
264264
continue;
265265

266-
if (reg < B53_CPU_PORT)
266+
if (reg < B53_N_PORTS)
267267
pdata->enabled_ports |= BIT(reg);
268268
}
269269

0 commit comments

Comments
 (0)