diff options
author | Álvaro Fernández Rojas <[email protected]> | 2023-03-16 18:28:07 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-03-17 21:56:31 -0700 |
commit | 30796d0dcb6e41c6558a07950f2ce60c209da867 (patch) | |
tree | 614fa00e3508682ce03794d06686df0e6b7b18ea | |
parent | 478a351ce0d69cef2d2bf2a686a09b356b63a66c (diff) |
net: dsa: b53: mmap: fix device tree support
CPU port should also be enabled in order to get a working switch.
Fixes: a5538a777b73 ("net: dsa: b53: mmap: Add device tree support")
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Acked-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/b53/b53_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/b53/b53_mmap.c b/drivers/net/dsa/b53/b53_mmap.c index e968322dfbf0..70887e0aece3 100644 --- a/drivers/net/dsa/b53/b53_mmap.c +++ b/drivers/net/dsa/b53/b53_mmap.c @@ -263,7 +263,7 @@ static int b53_mmap_probe_of(struct platform_device *pdev, if (of_property_read_u32(of_port, "reg", ®)) continue; - if (reg < B53_CPU_PORT) + if (reg < B53_N_PORTS) pdata->enabled_ports |= BIT(reg); } |