From: Vasanthakumar Thiagarajan <vasanth@atheros.com>
To: Sujith <m.sujith@gmail.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 13:53:56 +0530 [thread overview]
Message-ID: <20101228082356.GB31274@vasanth-laptop> (raw)
In-Reply-To: <19737.39891.227133.163154@gargle.gargle.HOWL>
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().
Vasanth
next prev parent reply other threads:[~2010-12-28 8:24 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 [this message]
2010-12-28 8:48 ` Sujith
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=20101228082356.GB31274@vasanth-laptop \
--to=vasanth@atheros.com \
--cc=Sujith.Manoharan@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=m.sujith@gmail.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