mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
21b89b0647
These patches have been merged upstream, so let's move them to backport. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 30796d0dcb6e41c6558a07950f2ce60c209da867 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
|
|
Date: Thu, 16 Mar 2023 18:28:07 +0100
|
|
Subject: [PATCH] net: dsa: b53: mmap: fix device tree support
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
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 <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>
|
|
---
|
|
drivers/net/dsa/b53/b53_mmap.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- 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 plat
|
|
if (of_property_read_u32(of_port, "reg", ®))
|
|
continue;
|
|
|
|
- if (reg < B53_CPU_PORT)
|
|
+ if (reg < B53_N_PORTS)
|
|
pdata->enabled_ports |= BIT(reg);
|
|
}
|
|
|