diff options
author | Hemmo Nieminen | 2015-12-03 23:11:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-02-08 04:52:30 +0100 |
commit | 39e9526cec50358725d6f68f271b35c041986800 (patch) | |
tree | 32d75ee059a0355243a9517afe86881525781e4f /drivers/staging/rtl8712/drv_types.h | |
parent | staging: rtl8712: Cleanup _io_ops wrappers (diff) | |
download | kernel-qcow2-linux-39e9526cec50358725d6f68f271b35c041986800.tar.gz kernel-qcow2-linux-39e9526cec50358725d6f68f271b35c041986800.tar.xz kernel-qcow2-linux-39e9526cec50358725d6f68f271b35c041986800.zip |
staging: rtl8712: Improve suspend/resume functionality.
Cancel pending URBs during suspend operation to avoid receiving ESHUTDOWN
in read/write completion callbacks while the device is suspended.
Receiving ESHUTDOWN in read/write completion callbacks will cause the
driver to enter a non-functioning "stopped" state from which the driver is
unable to recover without reloading the module.
Signed-off-by: Hemmo Nieminen <hemmo.nieminen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/drv_types.h')
-rw-r--r-- | drivers/staging/rtl8712/drv_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rtl8712/drv_types.h b/drivers/staging/rtl8712/drv_types.h index 3d64feeb80e7..29e47e1501c5 100644 --- a/drivers/staging/rtl8712/drv_types.h +++ b/drivers/staging/rtl8712/drv_types.h @@ -159,6 +159,7 @@ struct _adapter { struct mp_priv mppriv; s32 bDriverStopped; s32 bSurpriseRemoved; + s32 bSuspended; u32 IsrContent; u32 ImrContent; u8 EepromAddressSize; |