Use mdiobus_read() to read from the mii bus. Accessing the read hook directly bypasses the acquiring the slice. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- commands/miitool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/miitool.c b/commands/miitool.c index a87d567ace..07437d28a8 100644 --- a/commands/miitool.c +++ b/commands/miitool.c @@ -110,10 +110,10 @@ static int show_basic_mii(struct mii_bus *mii, struct phy_device *phydev, /* Some bits in the BMSR are latched, but we can't rely on being the only reader, so only the current values are meaningful */ - mii->read(mii, phydev->addr, MII_BMSR); + mdiobus_read(mii, phydev->addr, MII_BMSR); for (i = 0; i < 32; i++) - mii_val[i] = mii->read(mii, phydev->addr, i); + mii_val[i] = mdiobus_read(mii, phydev->addr, i); printf((mii->parent->id) < 0 ? "%s: %s: " : "%s: %s%d: ", phydev->cdev.name, mii->parent->name, mii->parent->id); -- 2.25.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox