]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: split the PHY probe from sfp_sm_mod_init()
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 10 Nov 2019 14:06:54 +0000 (14:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 00:17:01 +0000 (16:17 -0800)
commit13590653dac58e54200e3b8e2ca75e669773ca8d
treeb0774795153a7e9bfd09b00044ad5889089bf49d
parent380c006c40f8581301ae2b8e5a83c9eae8cff57d
net: sfp: split the PHY probe from sfp_sm_mod_init()

Move the PHY probe into a separate function, splitting it from
sfp_sm_mod_init().  This will allow us to eliminate the 50ms mdelay()
inside the state machine.

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