diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2012-06-12 10:48:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-13 14:35:58 -0400 |
commit | 506847ad34c08fe4f766ffe1b955713628acf6bd (patch) | |
tree | 45b2aa22c16615b871e4c3c08b1d49c8619e2e73 /drivers/net/wireless/ath/ath9k/mci.c | |
parent | 64bc1239c790e051ff677e023435d770d2ffa174 (diff) |
ath9k_hw: cleanup MCI gpm offset state
Add utility functions to get and test GPM offset and
remove MCI_STATE*_GPM_OFFSET states.
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/mci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mci.c b/drivers/net/wireless/ath/ath9k/mci.c index f0c8fa48d79e..9e152316fd5c 100644 --- a/drivers/net/wireless/ath/ath9k/mci.c +++ b/drivers/net/wireless/ath/ath9k/mci.c | |||
@@ -421,7 +421,7 @@ void ath_mci_intr(struct ath_softc *sc) | |||
421 | ar9003_mci_get_interrupt(sc->sc_ah, &mci_int, &mci_int_rxmsg); | 421 | ar9003_mci_get_interrupt(sc->sc_ah, &mci_int, &mci_int_rxmsg); |
422 | 422 | ||
423 | if (ar9003_mci_state(ah, MCI_STATE_ENABLE, NULL) == 0) { | 423 | if (ar9003_mci_state(ah, MCI_STATE_ENABLE, NULL) == 0) { |
424 | ar9003_mci_state(ah, MCI_STATE_INIT_GPM_OFFSET, NULL); | 424 | ar9003_mci_get_next_gpm_offset(ah, true, NULL); |
425 | return; | 425 | return; |
426 | } | 426 | } |
427 | 427 | ||
@@ -488,8 +488,8 @@ void ath_mci_intr(struct ath_softc *sc) | |||
488 | while (more_data == MCI_GPM_MORE) { | 488 | while (more_data == MCI_GPM_MORE) { |
489 | 489 | ||
490 | pgpm = mci->gpm_buf.bf_addr; | 490 | pgpm = mci->gpm_buf.bf_addr; |
491 | offset = ar9003_mci_state(ah, MCI_STATE_NEXT_GPM_OFFSET, | 491 | offset = ar9003_mci_get_next_gpm_offset(ah, false, |
492 | &more_data); | 492 | &more_data); |
493 | 493 | ||
494 | if (offset == MCI_GPM_INVALID) | 494 | if (offset == MCI_GPM_INVALID) |
495 | break; | 495 | break; |