]> 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)
commitea58b8e36ea98f6162c01104b51d62ac6947d23d
tree93a5a14961cdcfb8ba3fab233d82b6413cc4896d
parent684cd57a4e7106ad6e83daca5db100cb3a4414ed
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