Re: [PATCH net, v2] of_mdio: avoid MDIO bus removal when a PHY is missing

2018-01-09 Thread Geert Uytterhoeven
Hi Madalin, On Tue, Jan 9, 2018 at 9:33 AM, Madalin Bucur wrote: > If one of the child devices is missing the of_mdiobus_register_phy() > call will return -ENODEV. When a missing device is encountered the > registration of the remaining PHYs is stopped and the MDIO bus

Re: [PATCH net, v2] of_mdio: avoid MDIO bus removal when a PHY is missing

2018-01-09 Thread Geert Uytterhoeven
Hi Madalin, On Tue, Jan 9, 2018 at 9:33 AM, Madalin Bucur wrote: > If one of the child devices is missing the of_mdiobus_register_phy() > call will return -ENODEV. When a missing device is encountered the > registration of the remaining PHYs is stopped and the MDIO bus will > fail to register.

[PATCH net, v2] of_mdio: avoid MDIO bus removal when a PHY is missing

2018-01-09 Thread Madalin Bucur
If one of the child devices is missing the of_mdiobus_register_phy() call will return -ENODEV. When a missing device is encountered the registration of the remaining PHYs is stopped and the MDIO bus will fail to register. Propagate all errors except ENODEV to avoid it. Signed-off-by: Madalin

[PATCH net, v2] of_mdio: avoid MDIO bus removal when a PHY is missing

2018-01-09 Thread Madalin Bucur
If one of the child devices is missing the of_mdiobus_register_phy() call will return -ENODEV. When a missing device is encountered the registration of the remaining PHYs is stopped and the MDIO bus will fail to register. Propagate all errors except ENODEV to avoid it. Signed-off-by: Madalin