Alexandre Belloni
02a6efcab6
net: phy: allow scanning busses with missing phys
...
Some MDIO busses will error out when trying to read a phy address with no
phy present at that address. In that case, probing the bus will fail
because __mdiobus_register() is scanning the bus for all possible phys
addresses.
In case MII_PHYSID1 returns -EIO or -ENODEV, consider there is no phy at
this address and set the phy ID to 0xffffffff which is then properly
handled in get_phy_device().
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-25 12:59:42 -04:00
..
2017-12-01 15:42:21 -05:00
2018-03-01 21:23:34 -05:00
2018-01-08 14:20:21 -05:00
2018-03-04 18:11:54 -05:00
2017-12-01 15:42:21 -05:00
2017-12-01 15:42:21 -05:00
2018-03-06 11:12:39 -05:00
2016-11-30 10:22:27 -05:00
2017-12-15 15:41:13 -05:00
2017-12-01 15:42:21 -05:00
2018-03-01 21:23:35 -05:00
2017-12-01 15:42:21 -05:00
2017-11-02 11:10:55 +01:00
2018-04-08 19:58:52 -04:00
2017-12-01 15:42:21 -05:00
2017-12-01 15:42:21 -05:00
2018-02-14 15:33:43 -05:00
2018-01-03 10:38:54 -05:00
2017-12-01 15:42:21 -05:00
2018-03-23 13:19:49 -04:00
2017-11-08 10:24:14 +09:00
2017-12-01 15:42:21 -05:00
2017-11-04 09:26:51 +09:00
2018-04-04 11:24:54 -04:00
2018-04-23 21:06:41 -04:00
2018-02-06 11:20:17 -05:00
2017-12-27 11:06:50 -05:00
2017-02-09 17:10:23 -05:00
2018-01-11 13:56:24 -05:00
2018-04-01 20:54:41 -04:00
2017-03-29 10:32:32 -07:00
2017-11-02 11:10:55 +01:00
2017-08-22 14:22:18 -07:00
2017-08-06 20:55:28 -07:00
2017-08-06 20:55:28 -07:00
2017-09-05 14:42:52 -07:00
2017-09-05 14:42:52 -07:00
2018-03-07 12:39:59 -05:00
2017-09-05 14:42:52 -07:00
2018-01-08 14:30:28 -05:00
2017-12-18 15:09:42 -05:00
2017-05-16 11:41:08 -04:00
2017-12-18 13:24:56 -05:00
2018-03-22 11:41:08 -04:00
2018-04-12 21:46:10 -04:00
2017-02-08 13:29:04 -05:00
2017-12-01 15:42:21 -05:00
2018-04-25 12:59:42 -04:00
2017-11-08 10:24:14 +09:00
2018-03-04 18:11:54 -05:00
2018-03-04 18:11:54 -05:00
2018-03-23 11:31:58 -04:00
2018-03-30 10:11:06 -04:00
2017-12-01 15:42:21 -05:00
2018-03-22 11:41:07 -04:00
2017-12-01 15:42:21 -05:00
2018-03-30 10:11:06 -04:00
2018-03-29 14:30:41 -04:00
2017-08-06 20:55:29 -07:00
2017-12-13 11:22:54 -05:00
2018-03-26 12:07:49 -04:00
2017-12-01 15:42:21 -05:00
2017-11-02 11:10:55 +01:00
2018-03-01 21:23:34 -05:00
2017-12-01 15:42:21 -05:00
2017-12-01 15:42:21 -05:00
2017-09-18 16:33:18 -07:00