Skip to content

Commit f050561

Browse files
superna9999davem330
authored andcommitted
net: dsa: Make mv88e6060 use nested mdiobus read/write
Like mv88e6xxx and mdio-mux, to avoid lockdep give false positives because of nested MDIO busses, switch to previously introduced nested mdiobus_read/write variants. Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6e899e6 commit f050561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/dsa/mv88e6060.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static int reg_read(struct dsa_switch *ds, int addr, int reg)
2626
if (bus == NULL)
2727
return -EINVAL;
2828

29-
return mdiobus_read(bus, ds->pd->sw_addr + addr, reg);
29+
return mdiobus_read_nested(bus, ds->pd->sw_addr + addr, reg);
3030
}
3131

3232
#define REG_READ(addr, reg) \
@@ -47,7 +47,7 @@ static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val)
4747
if (bus == NULL)
4848
return -EINVAL;
4949

50-
return mdiobus_write(bus, ds->pd->sw_addr + addr, reg, val);
50+
return mdiobus_write_nested(bus, ds->pd->sw_addr + addr, reg, val);
5151
}
5252

5353
#define REG_WRITE(addr, reg, val) \

0 commit comments

Comments
 (0)