mbox series

[net,v2,0/2] net: phy: MDIO bus scanning fixes

Message ID 20200619184747.16606-1-f.fainelli@gmail.com
Headers show
Series net: phy: MDIO bus scanning fixes | expand

Message

Florian Fainelli June 19, 2020, 6:47 p.m. UTC
Hi all,

This patch series fixes two problems with the current MDIO bus scanning
logic which was identified while moving from 4.9 to 5.4 on devices that
do rely on scanning the MDIO bus at runtime because they use pluggable
cards.

Changes in v2:

- added comment explaining the special value of -ENODEV
- added Andrew's Reviewed-by tag

Florian Fainelli (2):
  of: of_mdio: Correct loop scanning logic
  net: phy: Check harder for errors in get_phy_id()

 drivers/net/phy/phy_device.c | 6 ++++--
 drivers/of/of_mdio.c         | 9 +++++++--
 2 files changed, 11 insertions(+), 4 deletions(-)