linux/drivers/net/wireless/ath
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
..
ar5523
ath5k
ath6kl Revert "wifi: ath6k: silence false positive -Wno-dangling-pointer warning on GCC 12" 2023-09-13 09:42:23 +02:00
ath9k wifi: ath9k: use IS_ERR() with debugfs_create_dir() 2023-09-13 09:42:34 +02:00
ath10k wifi: ath10k: Use RMW accessors for changing LNKCTL 2023-09-13 09:42:48 +02:00
ath11k wifi: ath11k: Use RMW accessors for changing LNKCTL 2023-09-13 09:42:48 +02:00
carl9170
wcn36xx
wil6210
ath.h
debug.c
dfs_pattern_detector.c
dfs_pattern_detector.h
dfs_pri_detector.c
dfs_pri_detector.h
hw.c
Kconfig
key.c
main.c
Makefile
reg.h
regd_common.h
regd.c
regd.h
spectral_common.h
trace.c
trace.h