]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: eliminate mdelay() from PHY probe
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 10 Nov 2019 14:06:59 +0000 (14:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 00:17:01 +0000 (16:17 -0800)
commitc6bc237c4113d3a12f18d5c21867c2e42b634bbf
treeefa9729b285cc266fa728e710cd3b7b0c85edc5d
parent6a78ad2fa438e2a535bb28fdf84653eac7491a2c
net: sfp: eliminate mdelay() from PHY probe

Rather than using mdelay() to wait before probing the PHY (which holds
several locks, including the rtnl lock), add an extra wait state to
the state machine to introduce the 50ms delay without holding any
locks.

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