Skip to content
Snippets Groups Projects
Commit 933b5fc0 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Yang Yingliang
Browse files

net: phy: ensure phylib state machine is stopped after calling phy_stop


mainline inclusion
from mainline-v5.1-rc1
commit cbfd12b3
category: bugfix
bugzilla: NA
CVE: NA

------------------------------------------------------

The call to the phylib state machine in phy_stop() just ensures that
the state machine isn't re-triggered, but a state machine call may
be scheduled already. So lets's call phy_stop_machine().
This also allows to get rid of the call to phy_stop_machine() in
phy_disconnect().

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Reviewed-by: default avatarWeiwei Deng <dengweiwei@huawei.com>
Reviewed-by: default avatarZhaohui Zhong <zhongzhaohui@huawei.com>
Reviewed-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Signed-off-by: default avatarYou Shengzui <youshengzui@huawei.com>
Reviewed-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent e6cd4562
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment