From: Vasanthakumar Thiagarajan <vasanth@atheros.com>
To: Felix Fietkau <nbd@openwrt.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linville@tuxdriver.com" <linville@tuxdriver.com>,
Luis Rodriguez <Luis.Rodriguez@Atheros.com>
Subject: Re: [PATCH 2/4] ath9k: fix stopping tx dma on reset
Date: Thu, 10 Mar 2011 15:02:54 +0530 [thread overview]
Message-ID: <20110310093254.GD28100@vasanth-laptop> (raw)
In-Reply-To: <20110310085847.GB28100@vasanth-laptop>
On Thu, Mar 10, 2011 at 02:28:47PM +0530, Vasanthakumar Thiagarajan wrote:
> On Thu, Mar 10, 2011 at 06:05:01AM +0530, Felix Fietkau wrote:
> > +bool ath9k_hw_abort_tx_dma(struct ath_hw *ah)
> > +{
> > + int i, q;
> > +
> > + REG_WRITE(ah, AR_Q_TXD, AR_Q_TXD_M);
> > +
> > + REG_SET_BIT(ah, AR_PCU_MISC, AR_PCU_FORCE_QUIET_COLL | AR_PCU_CLEAR_VMF);
> > + REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_FORCE_CH_IDLE_HIGH);
> > + REG_SET_BIT(ah, AR_D_GBL_IFS_MISC, AR_D_GBL_IFS_MISC_IGNORE_BACKOFF);
> > +
> > + for (q = 0; q < AR_NUM_QCU; q++) {
> > + for (i = 1000; i > 0; i--) {
> > + if (!ath9k_hw_numtxpending(ah, q))
> > + break;
> > +
> > + udelay(5);
> > + }
> > + }
> > + if (!i)
> > + return false;
>
> Here the assumption looks like a reset would follow to configure
> those registers back, may be some comment will be useful.
>
Also a hw reset is not guaranteed to follow this,
call of ath_drain_all_txq() in .flush(), for ex.
Vasanth
next prev parent reply other threads:[~2011-03-10 9:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 0:35 [PATCH 1/4] ath9k_hw: fix REG_SET_BIT and REG_CLR_BIT for multiple bits Felix Fietkau
2011-03-10 0:35 ` [PATCH 2/4] ath9k: fix stopping tx dma on reset Felix Fietkau
2011-03-10 0:35 ` [PATCH 3/4] ath9k: fix the .flush driver op implementation Felix Fietkau
2011-03-10 0:35 ` [PATCH 4/4] ath9k: improve reliability of beacon transmission and stuck beacon handling Felix Fietkau
2011-03-10 9:46 ` Vasanthakumar Thiagarajan
2011-03-10 13:04 ` Felix Fietkau
2011-03-10 13:15 ` Felix Fietkau
2011-03-10 9:25 ` [PATCH 3/4] ath9k: fix the .flush driver op implementation Vasanthakumar Thiagarajan
2011-03-10 13:03 ` Felix Fietkau
2011-03-10 8:58 ` [PATCH 2/4] ath9k: fix stopping tx dma on reset Vasanthakumar Thiagarajan
2011-03-10 9:32 ` Vasanthakumar Thiagarajan [this message]
2011-03-10 12:47 ` Felix Fietkau
-- strict thread matches above, loose matches on Subject: below --
2011-03-10 4:21 Mark Mentovai
2011-03-10 13:20 ` Felix Fietkau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110310093254.GD28100@vasanth-laptop \
--to=vasanth@atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=nbd@openwrt.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).