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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 03:47:30 +0000 (22:47 -0500)
commit26afec39306926654e9cd320f19bbf3685bb0997
treeb956c0b7e231bc483eb3ecfc6b961e1ac7afd217
parentf154be241d22298d2b63c9b613f619fa1086ea75
r8152: avoid start_xmit to call napi_schedule during autosuspend

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>
drivers/net/usb/r8152.c