]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: call state machine synchronously in phy_stop
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 18 Sep 2018 19:56:32 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 04:06:46 +0000 (21:06 -0700)
commita45eb32835cd099f27c3f8be8b091f859fca284f
treec92c9238c4f860eb6b7d2e44ee44023f47255222
parent9ec935fb6517e6a7a9570e17913de3dfd5fd8e3d
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 <hkallweit1@gmail.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c