Commit a54cdeeb authored by Kai-Heng Feng's avatar Kai-Heng Feng Committed by David S. Miller
Browse files

r8152: Set macpassthru in reset_resume callback

r8152 may fail to establish network connection after resume from system

If the USB port connects to r8152 lost its power during system suspend,
the MAC address was written before is lost. The reason is that The MAC
address doesn't get written again in its reset_resume callback.

So let's set MAC address again in reset_resume callback. Also remove
unnecessary lock as no other locking attempt will happen during

Signed-off-by: default avatarKai-Heng Feng <>
Signed-off-by: default avatarDavid S. Miller <>
parent 6b517374
......@@ -4799,10 +4799,9 @@ static int rtl8152_reset_resume(struct usb_interface *intf)
struct r8152 *tp = usb_get_intfdata(intf);
clear_bit(SELECTIVE_SUSPEND, &tp->flags);
queue_delayed_work(system_long_wq, &tp->hw_phy_work, 0);
return rtl8152_resume(intf);
Supports Markdown
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