OrangePi_CM5/drivers/net/wireless
Miaoqing Pan 5ed5d594d9 ath9k: fix sleeping in atomic context
[ Upstream commit 7c48662b9d56666219f526a71ace8c15e6e12f1f ]

The problem is that gpio_free() can sleep and the cfg_soc() can be
called with spinlocks held. One problematic call tree is:

--> ath_reset_internal() takes &sc->sc_pcu_lock spin lock
   --> ath9k_hw_reset()
      --> ath9k_hw_gpio_request_in()
         --> ath9k_hw_gpio_request()
            --> ath9k_hw_gpio_cfg_soc()

Remove gpio_free(), use error message instead, so we should make sure
there is no GPIO conflict.

Also remove ath9k_hw_gpio_free() from ath9k_hw_apply_gpio_override(),
as gpio_mask will never be set for SOC chips.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1628481916-15030-1-git-send-email-miaoqing@codeaurora.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:40:34 +02:00
..
admtek
…
ath ath9k: fix sleeping in atomic context 2021-09-18 13:40:34 +02:00
atmel
…
broadcom brcmfmac: pcie: fix oops on failure to resume and reprobe 2021-09-15 09:50:45 +02:00
cisco
…
intel iwlwifi: mvm: Fix scan channel flags settings 2021-09-18 13:40:34 +02:00
intersil
…
marvell mwifiex: re-fix for unaligned accesses 2021-07-14 16:56:34 +02:00
mediatek mt76: mt7915: fix IEEE80211_HE_PHY_CAP7_MAX_NC for station mode 2021-07-19 09:44:51 +02:00
microchip
…
quantenna
…
ralink
…
realtek rtw88: wow: fix size access error of probe request 2021-09-18 13:40:31 +02:00
rsi rsi: fix an error code in rsi_probe() 2021-09-15 09:50:43 +02:00
st cw1200: add missing MODULE_DEVICE_TABLE 2021-07-19 09:44:50 +02:00
ti wl1251: Fix possible buffer overflow in wl1251_cmd_scan 2021-07-19 09:44:50 +02:00
zydas
…
Kconfig
…
Makefile
…
mac80211_hwsim.c mac80211_hwsim: add concurrent channels scanning support over virtio 2021-07-19 09:44:53 +02:00
mac80211_hwsim.h
…
ray_cs.c
…
ray_cs.h
…
rayctl.h
…
rndis_wlan.c
…
virt_wifi.c virt_wifi: fix error on connect 2021-08-12 13:22:20 +02:00
wl3501.h
…
wl3501_cs.c
…