r8152: avoid start_xmit to call napi_schedule during autosuspend
authorhayeswang <hayeswang@realtek.com>
Thu, 26 Jan 2017 01:38:31 +0000 (09:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:55 +0000 (06:41 +0200)
commit993ba7ffcf6e0aa5e4b3ed193a99fc8f4e073325
treee1d57ed97c418a6c39aeb08256166add71c4f7f6
parent6149abe7f4042e5720544d4e5675d7a45a827ce7
r8152: avoid start_xmit to call napi_schedule during autosuspend

[ Upstream commit 26afec39306926654e9cd320f19bbf3685bb0997 ]

Adjust the setting of the flag of SELECTIVE_SUSPEND to prevent start_xmit()
from calling napi_schedule() directly during runtime suspend.

After calling napi_disable() or clearing the flag of WORK_ENABLE,
scheduling the napi is useless.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/r8152.c