Update bmips patches with the latest version sent upstream Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
28 lines
922 B
Diff
28 lines
922 B
Diff
From dadd7a1aa1eaebd5a03dee933c9051eae3724f00 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
|
|
Date: Thu, 9 Mar 2023 19:18: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>
|
|
---
|
|
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);
|
|
}
|
|
|