diff --git a/target/linux/realtek/patches-6.12/700-dsa-mdio-increase-max-ports-for-rtl839x-rtl931x.patch b/target/linux/realtek/patches-6.12/700-dsa-mdio-increase-max-ports-for-rtl839x-rtl931x.patch index 3db46a22853..1485b79263f 100644 --- a/target/linux/realtek/patches-6.12/700-dsa-mdio-increase-max-ports-for-rtl839x-rtl931x.patch +++ b/target/linux/realtek/patches-6.12/700-dsa-mdio-increase-max-ports-for-rtl839x-rtl931x.patch @@ -130,3 +130,23 @@ Signed-off-by: Markus Stockhausen return ds->ops->phy_write(ds, addr, reg, val); return 0; +--- a/drivers/net/phy/mdio_bus.c ++++ b/drivers/net/phy/mdio_bus.c +@@ -611,7 +611,7 @@ static int mdiobus_scan_bus_c22(struct m + int i; + + for (i = 0; i < PHY_MAX_ADDR; i++) { +- if ((bus->phy_mask & BIT(i)) == 0) { ++ if ((bus->phy_mask & BIT_ULL(i)) == 0ULL) { + struct phy_device *phydev; + + phydev = mdiobus_scan_c22(bus, i); +@@ -627,7 +627,7 @@ static int mdiobus_scan_bus_c45(struct m + int i; + + for (i = 0; i < PHY_MAX_ADDR; i++) { +- if ((bus->phy_mask & BIT(i)) == 0) { ++ if ((bus->phy_mask & BIT_ULL(i)) == 0ULL) { + struct phy_device *phydev; + + /* Don't scan C45 if we already have a C22 device */