mirror_ubuntu-kernels/drivers/net/wireless
Ulf Hansson 13e62626c5 wlcore: sdio: Fixup power on/off sequence
During "wlan-up", we are programming the FW into the WiFi-chip. However,
re-programming the FW doesn't work, unless a power cycle of the WiFi-chip
is made in-between the programmings.

To conform to this requirement and to fix the regression in a simple way,
let's start by allowing that the SDIO card (WiFi-chip) may stay powered on
(runtime resumed) when wl12xx_sdio_power_off() returns. The intent with the
current code is to treat this scenario as an error, but unfortunate this
doesn't work as expected, so let's fix this.

The other part is to guarantee that a power cycle of the SDIO card has been
completed when wl12xx_sdio_power_on() returns, as to allow the FW
programming to succeed. However, relying solely on runtime PM to deal with
this isn't sufficient. For example, userspace may prevent runtime suspend
via sysfs for the device that represents the SDIO card, leading to that the
mmc core also keeps it powered on. For this reason, let's instead do a
brute force power cycle in wl12xx_sdio_power_on().

Fixes: 728a9dc61f ("wlcore: sdio: Fix flakey SDIO runtime PM handling")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-01-22 18:23:49 +02:00
..
admtek net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ath for-4.21/block-20181221 2018-12-28 13:19:59 -08:00
atmel atmel: Replace mdelay() with msleep() in probe_atmel_card() 2018-07-31 10:25:33 +03:00
broadcom brcmfmac: Fix access point mode 2018-12-20 08:49:01 +02:00
cisco Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
intel iwlwifi: make IWLWIFI depend on CFG80211 2019-01-16 20:09:05 +02:00
intersil Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
marvell wireless-drivers-next patches for 4.21 2018-12-20 16:47:10 -08:00
mediatek wireless-drivers-next patches for 4.21 2018-12-20 16:47:10 -08:00
quantenna qtnfmac: fix error handling in control path 2018-11-06 18:57:37 +02:00
ralink rt2x00: rt61pci: mark expected switch fall-through 2018-11-06 18:59:59 +02:00
realtek wireless-drivers-next patches for 4.21 2018-12-20 16:47:10 -08:00
rsi rsi: fix spelling mistake "Initialzing" -> "Initializing" 2018-11-06 18:52:10 +02:00
st cw1200: Fix concurrency use-after-free bugs in cw1200_hw_scan() 2018-12-20 08:49:37 +02:00
ti wlcore: sdio: Fixup power on/off sequence 2019-01-22 18:23:49 +02:00
zydas zd1201: mark expected switch fall-through 2018-11-06 19:00:12 +02:00
Kconfig mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
mac80211_hwsim.c This time we have too many changes to list, highlights: 2018-12-19 08:36:18 -08:00
mac80211_hwsim.h mac80211_hwsim: allow configurable cipher types 2018-11-09 11:36:15 +01:00
Makefile mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
ray_cs.c ray_cs: mark expected switch fall-throughs 2018-11-06 19:00:01 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c wireless-drivers: use BIT_ULL for NL80211_STA_INFO_ attribute types 2018-06-27 19:07:39 +03:00
virt_wifi.c mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
wl3501_cs.c
wl3501.h