Skip to content
Commit 6b67d4d6 authored by Ivan T. Ivanov's avatar Ivan T. Ivanov Committed by David S. Miller
Browse files

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



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>
parent 396492b4
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