staging: rtl8712: Improve suspend/resume functionality.
authorHemmo Nieminen <hemmo.nieminen@iki.fi>
Fri, 19 Feb 2016 19:02:24 +0000 (21:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:18:33 +0000 (15:18 -0800)
commitb900d5793733c2035324051934be2cb3b714ba46
tree990d6b6e353f856eabedea7b530891e3d7df77e4
parentf99ca86646cf7dea405af114f182cf7cbbe4d0f6
staging: rtl8712: Improve suspend/resume functionality.

Fix a driver hang caused by earlier suspend/resume cycles. By handling a
ENODEV error during suspend as a real error we eventually end up stopping
the whole driver.

Fix this by handling the ENODEV error (during suspend) essentially by
retrying.

Signed-off-by: Hemmo Nieminen <hemmo.nieminen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/usb_ops_linux.c