]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/of/of_mdio.c:fix of_mdiobus_register()
authorDajun Jin <adajunjin@gmail.com>
Tue, 3 Mar 2020 04:24:21 +0000 (20:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 03:01:51 +0000 (19:01 -0800)
commit054e388ef1df38ab4365ebc89accc00a6c3f9b3d
treed9ee62428ec1dd6d4a075704640601e7e6826834
parent7fdb5e12530acf873340621468ee43d6701114ec
drivers/of/of_mdio.c:fix of_mdiobus_register()

When registers a phy_device successful, should terminate the loop
or the phy_device would be registered in other addr. If there are
multiple PHYs without reg properties, it will go wrong.

Signed-off-by: Dajun Jin <adajunjin@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c