Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: of_mdio: fix behavior on missing phy device
of_mdiobus_register creates a phy_device even if get_phy_device failed to create it previously. This causes indefinite polling on non-existent PHYs. This fix makes of_mdio_register rely on get_phy_device to properly create the device or fail otherwise. Signed-off-by: Sebastian Hesselbarth <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information