]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: fix TSF save/restore around chip reset
authorFelix Fietkau <nbd@openwrt.org>
Mon, 18 Nov 2013 19:14:43 +0000 (20:14 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 19:25:00 +0000 (14:25 -0500)
commitc642880336ccf09f1aa9abbe3e1f2a24c2de4947
tree3d6f1c61739a9660d3b7e12aa2eb44f353a04f6a
parent1d2509c81343d6792f7b332e16ca42dd2c1455fe
ath9k_hw: fix TSF save/restore around chip reset

A cold reset can be triggered because of DMA stop issues, and this leads
to TSF being cleared on all chipsets. To properly deal with this, always
save the TSF.
Additionally, account for the time it takes to do the actual chip reset,
which can be quite significant. On AR9344 it takes around 4.5 ms.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c