bmips: rework ARCH_HAS_SYNC_DMA_FOR_CPU_ALL patch
[openwrt/staging/ldir.git] / target / linux / bmips / patches-5.15 / 501-net-dsa-b53-mmap-fix-enabled_ports.patch
1 --- a/drivers/net/dsa/b53/b53_mmap.c
2 +++ b/drivers/net/dsa/b53/b53_mmap.c
3 @@ -263,7 +263,7 @@ static int b53_mmap_probe_of(struct plat
4 if (of_property_read_u32(of_port, "reg", &reg))
5 continue;
6
7 - if (reg < B53_CPU_PORT)
8 + if (reg <= B53_CPU_PORT)
9 pdata->enabled_ports |= BIT(reg);
10 }
11