Add some more OS_MARK() probes to the AR9300 HAL.
This commit is contained in:
parent
ca885fdfde
commit
823b2cc633
@ -666,6 +666,7 @@ ar9300_set_power_mode(struct ath_hal *ah, HAL_POWER_MODE mode, int set_chip)
|
||||
HALDEBUG(ah, HAL_DEBUG_POWER_MGMT, "%s: %s -> %s (%s)\n", __func__,
|
||||
modes[ar9300_get_power_mode(ah)], modes[mode],
|
||||
set_chip ? "set chip " : "");
|
||||
OS_MARK(ah, AH_MARK_CHIP_POWER, mode);
|
||||
|
||||
switch (mode) {
|
||||
case HAL_PM_AWAKE:
|
||||
@ -719,8 +720,10 @@ ar9300_set_power_mode(struct ath_hal *ah, HAL_POWER_MODE mode, int set_chip)
|
||||
default:
|
||||
HALDEBUG(ah, HAL_DEBUG_POWER_MGMT,
|
||||
"%s: unknown power mode %u\n", __func__, mode);
|
||||
OS_MARK(ah, AH_MARK_CHIP_POWER_DONE, -1);
|
||||
return AH_FALSE;
|
||||
}
|
||||
OS_MARK(ah, AH_MARK_CHIP_POWER_DONE, status);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -113,6 +113,8 @@ ar9300_stop_dma_receive(struct ath_hal *ah, u_int timeout)
|
||||
#define AH_RX_STOP_DMA_TIMEOUT 10000 /* usec */
|
||||
#define AH_TIME_QUANTUM 100 /* usec */
|
||||
|
||||
OS_MARK(ah, AH_MARK_RX_CTL, AH_MARK_RX_CTL_DMA_STOP);
|
||||
|
||||
if (timeout == 0) {
|
||||
timeout = AH_RX_STOP_DMA_TIMEOUT;
|
||||
}
|
||||
@ -157,6 +159,9 @@ ar9300_stop_dma_receive(struct ath_hal *ah, u_int timeout)
|
||||
|
||||
OS_REG_WRITE(ah, AR_MACMISC, org_value);
|
||||
|
||||
OS_MARK(ah, AH_MARK_RX_CTL,
|
||||
status ? AH_MARK_RX_CTL_DMA_STOP_OK : AH_MARK_RX_CTL_DMA_STOP_ERR);
|
||||
|
||||
return status;
|
||||
#undef AH_RX_STOP_DMA_TIMEOUT
|
||||
#undef AH_TIME_QUANTUM
|
||||
|
Loading…
Reference in New Issue
Block a user