Skip to content

Commit

Permalink
r8169: enable napi on resume.
Browse files Browse the repository at this point in the history
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 <artem.savkov@gmail.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Artem Savkov authored and David S. Miller committed Apr 3, 2012
1 parent f2ed5ee commit cff4c16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cff4c16

Please sign in to comment.