]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: move sfp sub-state machines into separate functions
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 10 Nov 2019 14:06:13 +0000 (14:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 00:17:00 +0000 (16:17 -0800)
commita9a74f2ca237344c9433e3adad3ad7af46d2119b
tree93a5a14961cdcfb8ba3fab233d82b6413cc4896d
parentcdac6893523dbd35e51237e872ac9ca8d601ec72
net: sfp: move sfp sub-state machines into separate functions

Move the SFP sub-state machines out of the main state machine function,
in preparation for it doing a bit more with the device state.  By doing
so, we ensure that our debug after the main state machine is always
printed.

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