mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
net: phy: call state machine synchronously in phy_stop
phy_stop() may be called e.g. when suspending, therefore all needed actions should be performed synchronously. Therefore add a synchronous call to the state machine. Signed-off-by: Heiner Kallweit <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
124eee3f69
commit
e8cfd9d6c7
1 file changed
+2
@@ -861,6 +861,8 @@ void phy_stop(struct phy_device *phydev)
|
||||
out_unlock:
|
||||
mutex_unlock(&phydev->lock);
|
||||
|
||||
phy_state_machine(&phydev->state_queue.work);
|
||||
|
||||
/* Cannot call flush_scheduled_work() here as desired because
|
||||
* of rtnl_lock(), but PHY_HALTED shall guarantee phy_change()
|
||||
* will not reenable interrupts.
|
||||
|
||||
Reference in new issue
Block a user