]> 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)
commit6a78ad2fa438e2a535bb28fdf84653eac7491a2c
treeb0774795153a7e9bfd09b00044ad5889089bf49d
parent1344c4516cf2f17e33c7332af9316e034ceb3788
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