|
@@ -2955,10 +2955,7 @@ static int rtl8152_close(struct net_device *netdev)
|
|
* be disable when autoresume occurs, because the
|
|
* be disable when autoresume occurs, because the
|
|
* netif_running() would be false.
|
|
* netif_running() would be false.
|
|
*/
|
|
*/
|
|
- if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) {
|
|
|
|
- rtl_runtime_suspend_enable(tp, false);
|
|
|
|
- clear_bit(SELECTIVE_SUSPEND, &tp->flags);
|
|
|
|
- }
|
|
|
|
|
|
+ rtl_runtime_suspend_enable(tp, false);
|
|
|
|
|
|
tasklet_disable(&tp->tl);
|
|
tasklet_disable(&tp->tl);
|
|
tp->rtl_ops.down(tp);
|
|
tp->rtl_ops.down(tp);
|
|
@@ -3253,6 +3250,8 @@ static int rtl8152_resume(struct usb_interface *intf)
|
|
set_bit(WORK_ENABLE, &tp->flags);
|
|
set_bit(WORK_ENABLE, &tp->flags);
|
|
}
|
|
}
|
|
usb_submit_urb(tp->intr_urb, GFP_KERNEL);
|
|
usb_submit_urb(tp->intr_urb, GFP_KERNEL);
|
|
|
|
+ } else if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) {
|
|
|
|
+ clear_bit(SELECTIVE_SUSPEND, &tp->flags);
|
|
}
|
|
}
|
|
|
|
|
|
mutex_unlock(&tp->control);
|
|
mutex_unlock(&tp->control);
|