]> 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)
commit5ac167bcf66a580a5dd62b70e0a38769b9ca2ade
treec92c9238c4f860eb6b7d2e44ee44023f47255222
parentd34d38e1ac1b3f85e4e3f279f15593533701cc2c
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