Skip to content
Commit f92dc3a8 authored by Ivan T. Ivanov's avatar Ivan T. Ivanov Committed by Sasha Levin
Browse files

net: usb: lan78xx: don't modify phy_device state concurrently

[ Upstream commit 6b67d4d6

 ]

Currently phy_device state could be left in inconsistent state shown
by following alert message[1]. This is because phy_read_status could
be called concurrently from lan78xx_delayedwork, phy_state_machine and
__ethtool_get_link. Fix this by making sure that phy_device state is
updated atomically.

[1] lan78xx 1-1.1.1:1.0 eth0: No phy led trigger registered for speed(-1)

Signed-off-by: default avatarIvan T. Ivanov <iivanov@suse.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent be704367
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