Files
linux/drivers/net/wireless/ath
Miaoqing Pan 137a7950b1 ath9k: fix sleeping in atomic context
[ Upstream commit 7c48662b9d ]

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>
2023-05-16 11:46:24 +09:00
..
2023-05-16 10:26:12 +09:00
2015-11-18 14:28:31 +02:00
2014-10-07 14:48:37 -04:00
2014-10-02 14:23:14 -04:00
2023-05-12 16:41:15 +09:00
2014-10-02 14:23:14 -04:00
2014-10-02 14:23:14 -04:00