net: sfp: re-attempt probing for phy
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 9 Dec 2019 14:16:11 +0000 (14:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2019 20:46:12 +0000 (12:46 -0800)
commit1cb89a14c80a87abe1f5bd47b1e7b3171b968f8c
tree409bb3dbcbad81f281ab7beeceb0da7883f4c232
parent256e43cb8c696e0754514686d92f4e27b4985ad5
net: sfp: re-attempt probing for phy

Some 1000BASE-T PHY modules take a while for the PHY to wake up.
Retry the probe a number of times before deciding that the module has
no PHY.

Tested with:
 Sourcephotonics SPGBTXCNFC - PHY takes less than 50ms to respond.
 Champion One 1000SFPT - PHY takes about 200ms to respond.
 Mikrotik S-RJ01 - no PHY

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c