linux/drivers/staging
Kai-Heng Feng ac544a459a staging: rtl8712u: Fix suspend and resume callbacks
When system resume and the rtl8712u dongle didn't lose its power, it
doesn't work quite right:
[  146.844241] r8712u 2-3:1.0 wlp0s4f1u3: Unable to resume
...
[  154.029573] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1

The !netif_running() check in PM callbacks aren't correct because
rtl8712u doesn't support runtime suspend, so the when the PM ops get
called, it's system suspend or system resume, hence we want to "stop
everthing" or "resume everything".

The NULL check on pnetdev is also redundant, the only place pnetdev can
become NULL is the disconnect callback, which is mutually exclusive to
PM callbacks.

This can make rtl8712u starts working after system resume.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2019-01-15 16:11:50 +01:00
..
android staging/android/vsoc: Remove duplicate header 2019-01-15 16:07:41 +01:00
axis-fifo staging: axis-fifo: Split line to stay in 80 characters. 2018-11-20 10:59:30 +01:00
board staging: board: Replace license boilerplate with SPDX identifiers 2018-05-06 19:11:23 -07:00
clocking-wizard staging: clocking-wizard: match parenthesis indentation 2018-10-09 14:57:33 +02:00
comedi staging: comedi: ni_pcidio: make defines uppercase 2019-01-15 16:08:04 +01:00
emxx_udc staging: emxx_udc: Remove cast and move all in one line. 2018-12-05 09:44:10 +01:00
erofs staging: erofs: clean up erofs_map_blocks_iter 2019-01-15 15:52:26 +01:00
fbtft staging: fbtft: fix strncmp() size warning 2018-12-19 08:29:28 +01:00
fsl-dpaa2 staging: fsl-dpaa2: fix SPDX identifiers in header files 2019-01-07 08:56:07 +01:00
fwserial staging: fwserial: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-17 14:24:07 +01:00
gasket staging: gasket: formatting fixes 2018-11-12 14:43:15 -08:00
gdm724x staging: gdm724x: redundant variables idProduct and idVendor 2018-07-11 13:12:34 +02:00
goldfish staging: goldfish: remove GPL boiler plate text 2019-01-15 16:08:04 +01:00
greybus staging: greybus: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-17 14:24:42 +01:00
gs_fpgaboot staging: gs_fpgaboot: cleanup alignment issue - style 2019-01-15 16:08:05 +01:00
iio Revert "Staging: iio: adt7316: Add an extra check for 'ret' equals to 0" 2018-12-08 11:15:54 +00:00
ks7010 staging: ks7010: remove unnecessary blank line 2018-11-07 12:35:10 +01:00
media Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
most staging: most: sound: replace snprintf with strscpy 2018-12-19 08:28:22 +01:00
mt7621-dma staging: mt7621-dma: Use struct_size() in devm_kzalloc() 2019-01-07 11:28:15 +01:00
mt7621-dts staging: mt7621-dts: add pci-phy related bindings to board's device tree 2019-01-07 11:28:14 +01:00
mt7621-eth cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
mt7621-mmc staging: mt7621-mmc: Correct spelling mistakes in comments 2018-12-20 18:11:58 +01:00
mt7621-pci staging: mt7621-pci: use PCI definitions instead of hardcode values 2019-01-15 16:08:36 +01:00
mt7621-pci-phy staging: mt7621-pci-phy: dt-bindings: add bindings for Mediatek MT7621 Pcie PHY 2019-01-07 11:28:15 +01:00
mt7621-pinctrl staging: mt7621-pinctrl: use pinconf-generic for 'dt_node_to_map' and 'dt_free_map' 2019-01-07 11:28:13 +01:00
mt7621-spi staging: mt7621-spi: drop support for SPI mode 1/2/3 2018-12-12 11:34:53 +01:00
netlogic net: Add generic ndo_select_queue functions 2018-07-09 13:15:34 -07:00
nvec Revert "staging: nvec: Augment TODO file with GPIO work item" 2018-04-23 18:49:51 +02:00
octeon Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
octeon-usb staging: octeon-usb: use a helper function to set the DMA mask 2018-12-05 09:47:02 +01:00
olpc_dcon staging: olpc_dcon: olpc_dcon_xo_1.c: Switch to the gpio descriptor interface 2018-11-08 03:59:47 -08:00
pi433 staging: pi433: add missing call to cdev_del() 2018-12-05 09:39:45 +01:00
rtl8188eu staging: rtl8188eu: Replace kzalloc with kcalloc 2019-01-15 16:08:04 +01:00
rtl8192e staging: rtl8192e: rename Len to len - style 2019-01-15 16:11:50 +01:00
rtl8192u Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
rtl8712 staging: rtl8712u: Fix suspend and resume callbacks 2019-01-15 16:11:50 +01:00
rtl8723bs Revert "staging: rtl8723bs: Mark ACPI table declaration as used" 2019-01-11 10:40:13 +01:00
rtlwifi staging: rtlwifi: rtl8822b: fix a missing check of alloc_skb 2019-01-15 16:08:28 +01:00
rts5208 Staging: rts5208: Fix error handling on rtsx_send_cmd 2019-01-07 11:28:15 +01:00
sm750fb staging: sm750fb: Add spaces around '+' 2018-11-07 12:35:10 +01:00
speakup staging: speakup: Fix coding style 2019-01-07 08:56:07 +01:00
unisys Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
vboxvideo Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
vc04_services cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
vme staging: vme: vme_user: Fix some error handling paths in 'vme_user_probe()' 2018-03-23 15:55:21 +01:00
vt6655 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
vt6656 staging: vt6655: remove some redundant variables 2018-07-11 14:47:08 +02:00
wilc1000 staging: wilc1000: remove set but not used variable 'msa' 2019-01-15 16:08:04 +01:00
wlan-ng staging: wlan-ng: prism2fw.c: Fix "Possible unnecessary 'out of memory' message" checkpatch.pl warning" 2019-01-07 08:56:07 +01:00
xgifb staging: xgifb: clean an indentation issue 2018-11-07 12:35:10 +01:00
Kconfig staging: mt7621-pci-phy: add new driver for phy part of mt7621-pci 2019-01-07 11:28:14 +01:00
Makefile staging: mt7621-pci-phy: add new driver for phy part of mt7621-pci 2019-01-07 11:28:14 +01:00