Re: [PATCH V2] mdio_bus: Fix MDIO bus scanning in __mdiobus_register()

2016-05-01 Thread David Miller
From: Marek Vasut Date: Mon, 2 May 2016 02:47:31 +0200 > Since commit b74766a0a0fe ("phylib: don't return NULL > from get_phy_device()") in linux-next, phy_get_device() will return > ERR_PTR(-ENODEV) instead of NULL if the PHY device ID is all ones. > > This causes problem with stmmac driver an

[PATCH V2] mdio_bus: Fix MDIO bus scanning in __mdiobus_register()

2016-05-01 Thread Marek Vasut
Since commit b74766a0a0fe ("phylib: don't return NULL from get_phy_device()") in linux-next, phy_get_device() will return ERR_PTR(-ENODEV) instead of NULL if the PHY device ID is all ones. This causes problem with stmmac driver and likely some other drivers which call mdiobus_register(). I trigger