mirror-linux/drivers/net/wireless
Ilpo Järvinen e12e13952b wifi: ath10k: Use RMW accessors for changing LNKCTL
[ Upstream commit f139492a09 ]

Don't assume that only the driver would be accessing LNKCTL. ASPM policy
changes can trigger write to LNKCTL outside of driver's control.

Use RMW capability accessors which does proper locking to avoid losing
concurrent updates to the register value. On restore, clear the ASPMC field
properly.

Suggested-by: Lukas Wunner <lukas@wunner.de>
Fixes: 76d870ed09 ("ath10k: enable ASPM")
Link: https://lore.kernel.org/r/20230717120503.15276-11-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Kalle Valo <kvalo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:48 +02:00
..
admtek
ath wifi: ath10k: Use RMW accessors for changing LNKCTL 2023-09-13 09:42:48 +02:00
atmel wifi: atmel: Fix an error handling path in atmel_probe() 2023-07-19 16:21:06 +02:00
broadcom wifi: brcmfmac: Fix field-spanning write in brcmf_scan_params_v2_to_v1() 2023-09-13 09:42:24 +02:00
cisco wifi: airo: avoid uninitialized warning in airo_get_rate() 2023-07-23 13:49:26 +02:00
intel wifi: iwlwifi: pcie: add device id 51F1 for killer 1675 2023-07-27 08:50:36 +02:00
intersil wifi: orinoco: Fix an error handling path in orinoco_cs_probe() 2023-07-19 16:21:06 +02:00
marvell wifi: mwifiex: avoid possible NULL skb pointer dereference 2023-09-13 09:42:34 +02:00
mediatek wifi: mt76: mt7915: fix power-limits while chan_switch 2023-09-13 09:42:31 +02:00
microchip wifi: wilc1000: fix for absent RSN capabilities WFA testcase 2023-07-19 16:21:04 +02:00
purelifi
quantenna
ralink wifi: rt2x00: Fix memory leak when handling surveys 2023-05-11 23:03:20 +09:00
realtek wifi: rtw89: debug: Fix error handling in rtw89_debug_priv_btc_manual_set() 2023-09-13 09:42:31 +02:00
rsi wifi: rsi: Do not set MMC_PM_KEEP_POWER in shutdown 2023-07-19 16:21:07 +02:00
silabs
st
ti
zydas
Kconfig
Makefile
mac80211_hwsim.c wifi: mac80211_hwsim: Fix possible NULL dereference 2023-07-27 08:50:34 +02:00
mac80211_hwsim.h
ray_cs.c wifi: ray_cs: Fix an error handling path in ray_probe() 2023-07-19 16:21:06 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid 2023-02-01 08:34:18 +01:00
virt_wifi.c
wl3501.h
wl3501_cs.c wifi: wl3501_cs: Fix an error handling path in wl3501_probe() 2023-07-19 16:21:06 +02:00