linux/drivers/staging/rtl8192e
Vaibhav Gupta 0c90789ad0 staging: rtl8192e: use generic power management
The structure of working of PM hooks for source files is:
    drivers/staging/rtl8192e/rtl8192e/rtl_pm.h   : callbacks declared
    drivers/staging/rtl8192e/rtl8192e/rtl_pm.c   : callbacks defined
    drivers/staging/rtl8192e/rtl8192e/rtl_core.c : callbacks used

Drivers should not use legacy power management as they have to manage power
states and related operations, for the device, themselves. This driver was
handling them with the help of PCI helper functions like
pci_save/restore_state(), pci_enable/disable_device(), etc.

With generic PM, all essentials will be handled by the PCI core. Driver
needs to do only device-specific operations.

The driver was also using pci_enable_wake(...,..., 0) to disable wake. Use
device_wakeup_disable() instead. Use device_set_wakeup_enable() where WOL
is decided by the value of a variable during runtime.

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Link: https://lore.kernel.org/r/20200629082819.216405-3-vaibhavgupta40@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-01 15:39:20 +02:00
..
rtl8192e staging: rtl8192e: use generic power management 2020-07-01 15:39:20 +02:00
dot11d.c
dot11d.h
Kconfig
Makefile
rtl819x_BA.h
rtl819x_BAProc.c staging: rtl8192e: style fix - Prefer using '"%s...", __func__' 2020-02-09 16:22:58 -08:00
rtl819x_HT.h
rtl819x_HTProc.c staging: rtl8192e: Using comparison to true is error prone 2020-05-27 10:16:33 +02:00
rtl819x_Qos.h
rtl819x_TS.h
rtl819x_TSProc.c staging: rtl8192e: style fix - Prefer using '"%s...", __func__' 2020-02-09 16:22:58 -08:00
rtllib_crypt_ccmp.c
rtllib_crypt_tkip.c
rtllib_crypt_wep.c
rtllib_debug.h
rtllib_module.c
rtllib_rx.c staging: rtl8192e: Use scnprintf() for avoiding potential buffer overflow 2020-03-12 09:23:59 +01:00
rtllib_softmac_wx.c
rtllib_softmac.c
rtllib_tx.c staging: rtl8192e: style fix - Prefer using '"%s...", __func__' 2020-02-09 16:22:58 -08:00
rtllib_wx.c staging: rtl8192e: Use scnprintf() for avoiding potential buffer overflow 2020-03-12 09:23:59 +01:00
rtllib.h staging: Replace zero-length array with flexible-array member 2020-02-23 19:18:54 +01:00
TODO