From: Sujith <m.sujith@gmail.com>
To: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
Sujith Manoharan <Sujith.Manoharan@Atheros.com>
Subject: Re: [PATCH 3/5] ath9k_htc: Handle FATAL events
Date: Tue, 28 Dec 2010 14:18:32 +0530 [thread overview]
Message-ID: <19737.42080.713574.605350@gargle.gargle.HOWL> (raw)
In-Reply-To: <20101228082356.GB31274@vasanth-laptop>
Vasanthakumar Thiagarajan wrote:
> On Tue, Dec 28, 2010 at 01:42:03PM +0530, Sujith wrote:
> > From: Sujith Manoharan <Sujith.Manoharan@atheros.com>
> >
> > The device has to be reset when a FATAL event is received.
> > Not doing so would leave the card in a non-working state.
> >
> > Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
> > ---
> > drivers/net/wireless/ath/ath9k/htc.h | 6 ++-
> > drivers/net/wireless/ath/ath9k/htc_drv_init.c | 8 ++-
> > drivers/net/wireless/ath/ath9k/htc_drv_main.c | 57 ++++++++++++++++++++++++-
> > drivers/net/wireless/ath/ath9k/wmi.c | 18 +++++++-
> > drivers/net/wireless/ath/ath9k/wmi.h | 3 +-
> > 5 files changed, 84 insertions(+), 8 deletions(-)
> >
> > +void ath9k_htc_reset(struct ath9k_htc_priv *priv)
> > +{
> > + struct ath_hw *ah = priv->ah;
> > + struct ath_common *common = ath9k_hw_common(ah);
> > + struct ieee80211_channel *channel = priv->hw->conf.channel;
> > + struct ath9k_hw_cal_data *caldata;
> > + enum htc_phymode mode;
> > + __be16 htc_mode;
> > + u8 cmd_rsp;
> > + int ret;
> > +
> > + mutex_lock(&priv->mutex);
>
> This will result in a deadlock with the one in ath9k_htc_stop().
Indeed yes, nice catch.
There is no need to lock the cancellation stuff anyway,
I'll just move them outside the lock.
Thanks for the review.
Sujith
prev parent reply other threads:[~2010-12-28 8:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-28 8:12 [PATCH 3/5] ath9k_htc: Handle FATAL events Sujith
2010-12-28 8:23 ` Vasanthakumar Thiagarajan
2010-12-28 8:48 ` Sujith [this message]
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=19737.42080.713574.605350@gargle.gargle.HOWL \
--to=m.sujith@gmail.com \
--cc=Sujith.Manoharan@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=vasanth@atheros.com \
/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