diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2012-06-11 10:49:32 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-13 22:35:53 +0400 |
commit | 3863495b86d8ee8e7e70a328de5b88d555d7305a (patch) | |
tree | 1d74ca3fbb7774bed9cee07c4162b1ef2e52459b /drivers/net/wireless/ath/ath9k/ar9003_mci.h | |
parent | 9dd9b0dc1de8031a31b3eaebc6a9c0ab60612026 (diff) | |
download | linux-3863495b86d8ee8e7e70a328de5b88d555d7305a.tar.xz |
ath9k_hw: check GPM HW write pointer before chip reset
Both "MAC Warm Reset" and "MCI Reset Rx" will reset GPM HW write_ptr.
We should check software cached write_ptr against HW write_ptr before
reset. Otherwise the pending DMA data will be lost.
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_mci.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_mci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.h b/drivers/net/wireless/ath/ath9k/ar9003_mci.h index 2a8c764281ba..45624e1d3960 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_mci.h +++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.h @@ -190,6 +190,7 @@ enum mci_bt_state { enum mci_state_type { MCI_STATE_ENABLE, MCI_STATE_INIT_GPM_OFFSET, + MCI_STATE_CHECK_GPM_OFFSET, MCI_STATE_NEXT_GPM_OFFSET, MCI_STATE_LAST_GPM_OFFSET, MCI_STATE_BT, |