Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: fix a chip wakeup related crash in ath9k_start

When the chip is still asleep when ath9k_start is called,
ath9k_hw_configpcipowersave can trigger a data bus error.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Felix Fietkau and committed by
John W. Linville
f62d816f 4dc217df

+4
+4
drivers/net/wireless/ath/ath9k/main.c
··· 1048 1048 "Starting driver with initial channel: %d MHz\n", 1049 1049 curchan->center_freq); 1050 1050 1051 + ath9k_ps_wakeup(sc); 1052 + 1051 1053 mutex_lock(&sc->mutex); 1052 1054 1053 1055 /* setup initial channel */ ··· 1144 1142 1145 1143 mutex_unlock: 1146 1144 mutex_unlock(&sc->mutex); 1145 + 1146 + ath9k_ps_restore(sc); 1147 1147 1148 1148 return r; 1149 1149 }