]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0216a85e82624ab2566c5aaf14af80702d96fe08
tree409bb3dbcbad81f281ab7beeceb0da7883f4c232
parent5e2cb003778ccf276d8397f3409cec694a66528f
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