r8152: clear SELECTIVE_SUSPEND when autoresuming
authorhayeswang <hayeswang@realtek.com>
Wed, 29 Oct 2014 03:12:15 +0000 (11:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 19:49:00 +0000 (15:49 -0400)
commit923e1ee3ff0b585cc4f56cf696c8455708537ffb
treef8706852ca3254b06a7a3bdf2070d1c8ab460616
parentd70127e8a942364de8dd140fe73893efda363293
r8152: clear SELECTIVE_SUSPEND when autoresuming

The flag of SELECTIVE_SUSPEND should be cleared when autoresuming.
Otherwise, when the system suspend and resume occur, it may have
the wrong flow.

Besides, because the flag of SELECTIVE_SUSPEND couldn't be used
to check if the hw enables the relative feature, it should alwayes
be disabled in close().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c