Message ID | 20230316172807.460146-1-noltari@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 30796d0dcb6e41c6558a07950f2ce60c209da867 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [v2] net: dsa: b53: mmap: fix device tree support | expand |
On 3/16/23 10:28, Álvaro Fernández Rojas wrote: > 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>
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Thu, 16 Mar 2023 18:28:07 +0100 you wrote: > 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> > --- > v2: switch to B53_N_PORTS > > [...] Here is the summary with links: - [v2] net: dsa: b53: mmap: fix device tree support https://git.kernel.org/netdev/net/c/30796d0dcb6e You are awesome, thank you!
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); }
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> --- v2: switch to B53_N_PORTS drivers/net/dsa/b53/b53_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)