drivers: net: phy: Ignore PHY ID 0 during PHY probing
authorAlex Marginean <alexm.osslist@gmail.com>
Fri, 5 Jul 2019 09:28:55 +0000 (12:28 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 18 Jul 2019 21:37:13 +0000 (16:37 -0500)
commit3bf135b6c367ec67258a67eefbe1eeb7b984e12d
tree9e7aaba3ed0989877ae390ffb953d73e66fb8018
parent14df216d10c025de223556c01087994716691e9b
drivers: net: phy: Ignore PHY ID 0 during PHY probing

Current code fails to probe some C45 PHYs that also respond to C22 reads.
This is the case for PHYs like Aquantia AQR112, Marvell 88X2242 (as
previously posted on the u-boot list).
If the PHY ID reads all 0s just ignore it and try the next devad.

Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
Reviewed-By: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c