mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
r8169: enable napi on resume.
NAPI is disabled during suspend and needs to be enabled on resume. Without this the driver locks up during resume in rtl_reset_work() trying to disable NAPI again. Signed-off-by: Artem Savkov <[email protected]> Acked-by: Francois Romieu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
f2ed5ee1b0
commit
cff4c16296
1 changed files with 3 additions and 0 deletions
|
|
@ -5810,7 +5810,10 @@ static void __rtl8169_resume(struct net_device *dev)
|
|||
|
||||
rtl_pll_power_up(tp);
|
||||
|
||||
rtl_lock_work(tp);
|
||||
napi_enable(&tp->napi);
|
||||
set_bit(RTL_FLAG_TASK_ENABLED, tp->wk.flags);
|
||||
rtl_unlock_work(tp);
|
||||
|
||||
rtl_schedule_task(tp, RTL_FLAG_TASK_RESET_PENDING);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue