From: Artem Savkov Date: Tue, 3 Apr 2012 10:29:11 +0000 (+0000) Subject: r8169: enable napi on resume. X-Git-Tag: MMI-PSA29.97-13-9~17049^2~33 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cff4c16296754888b6fd8c886bc860a888e20257;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Francois Romieu Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 7b23554f80b6..f54509377efa 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -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); }