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)
commit09d8e315d90a70eb1096d68f27be04d6c43724f3
tree3d6f1c61739a9660d3b7e12aa2eb44f353a04f6a
parent10e2318103f5941aa70c318afe34bc41f1b98529
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