Commit 8d67a031 authored by Bruno Randolf's avatar Bruno Randolf Committed by John W. Linville

ath5k: more debug prints for resets

Add a debug print for every case of reset.
Signed-off-by: default avatarBruno Randolf <br1@einfach.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c086abae
...@@ -1111,8 +1111,9 @@ ath5k_setup_bands(struct ieee80211_hw *hw) ...@@ -1111,8 +1111,9 @@ ath5k_setup_bands(struct ieee80211_hw *hw)
static int static int
ath5k_chan_set(struct ath5k_softc *sc, struct ieee80211_channel *chan) ath5k_chan_set(struct ath5k_softc *sc, struct ieee80211_channel *chan)
{ {
ATH5K_DBG(sc, ATH5K_DEBUG_RESET, "(%u MHz) -> (%u MHz)\n", ATH5K_DBG(sc, ATH5K_DEBUG_RESET,
sc->curchan->center_freq, chan->center_freq); "channel set, resetting (%u -> %u MHz)\n",
sc->curchan->center_freq, chan->center_freq);
/* /*
* To switch channels clear any pending DMA operations; * To switch channels clear any pending DMA operations;
...@@ -2298,6 +2299,8 @@ ath5k_beacon_send(struct ath5k_softc *sc) ...@@ -2298,6 +2299,8 @@ ath5k_beacon_send(struct ath5k_softc *sc)
ATH5K_DBG(sc, ATH5K_DEBUG_BEACON, ATH5K_DBG(sc, ATH5K_DEBUG_BEACON,
"stuck beacon time (%u missed)\n", "stuck beacon time (%u missed)\n",
sc->bmisscount); sc->bmisscount);
ATH5K_DBG(sc, ATH5K_DEBUG_RESET,
"stuck beacon, resetting\n");
tasklet_schedule(&sc->restq); tasklet_schedule(&sc->restq);
} }
return; return;
...@@ -2705,6 +2708,8 @@ ath5k_intr(int irq, void *dev_id) ...@@ -2705,6 +2708,8 @@ ath5k_intr(int irq, void *dev_id)
* Fatal errors are unrecoverable. * Fatal errors are unrecoverable.
* Typically these are caused by DMA errors. * Typically these are caused by DMA errors.
*/ */
ATH5K_DBG(sc, ATH5K_DEBUG_RESET,
"fatal int, resetting\n");
tasklet_schedule(&sc->restq); tasklet_schedule(&sc->restq);
} else if (unlikely(status & AR5K_INT_RXORN)) { } else if (unlikely(status & AR5K_INT_RXORN)) {
/* /*
...@@ -2717,8 +2722,11 @@ ath5k_intr(int irq, void *dev_id) ...@@ -2717,8 +2722,11 @@ ath5k_intr(int irq, void *dev_id)
* this guess is copied from the HAL. * this guess is copied from the HAL.
*/ */
sc->stats.rxorn_intr++; sc->stats.rxorn_intr++;
if (ah->ah_mac_srev < AR5K_SREV_AR5212) if (ah->ah_mac_srev < AR5K_SREV_AR5212) {
ATH5K_DBG(sc, ATH5K_DEBUG_RESET,
"rx overrun, resetting\n");
tasklet_schedule(&sc->restq); tasklet_schedule(&sc->restq);
}
else else
tasklet_schedule(&sc->rxtq); tasklet_schedule(&sc->rxtq);
} else { } else {
......
...@@ -278,6 +278,7 @@ static ssize_t write_file_reset(struct file *file, ...@@ -278,6 +278,7 @@ static ssize_t write_file_reset(struct file *file,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
struct ath5k_softc *sc = file->private_data; struct ath5k_softc *sc = file->private_data;
ATH5K_DBG(sc, ATH5K_DEBUG_RESET, "debug file triggered reset\n");
tasklet_schedule(&sc->restq); tasklet_schedule(&sc->restq);
return count; return count;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment