From: Felix Fietkau <nbd@openwrt.org>
To: "Manoharan, Sujith" <c_manoha@qti.qualcomm.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linville@tuxdriver.com" <linville@tuxdriver.com>,
"Rodriguez, Luis" <rodrigue@qca.qualcomm.com>
Subject: Re: [PATCH 3.7 2/3] ath9k: improve suspend/resume reliability
Date: Sat, 06 Oct 2012 12:59:39 +0200 [thread overview]
Message-ID: <50700F1B.1050405@openwrt.org> (raw)
In-Reply-To: <506697F5827BD842B7CB80D046EBE618A47245@aphydexd01b>
On 2012-10-06 12:46 PM, Manoharan, Sujith wrote:
> On 2012-10-04 4:33 AM, Sujith Manoharan wrote:
>> Felix Fietkau wrote:
>>> Ensure that drv_start() always returns true, as a failing hw start usually
>>> eventually leads to crashes when there's still a station entry present.
>>> Call a power-on reset after a resume and after a hw reset failure to bring
>>> the hardware back to life again.
>>
>> In what situations did HW reset (via start() or resume()) fail ?
>> I don't know what situations caused it, but this happened on a few
>> ChromeOS devices in the wild, and my patch fixed it.
>
> Well, the cause for the real issue, the HW reset failure is still unknown.
> I think we might be papering over some other bug here.
After a suspend/resume cycle, the card definitely needs at least one
power-on reset (since we can assume that the card was power cycled), as
is done on driver initialization as well. My patch ensures that this
happens by setting a flag on resume.
If for some reason the drv_start() reset still fails (and I'm not aware
of any such instances), it's still much better to return 0. The reset
failure will still appear in log messages.
If we return an error code in drv_start, this tends to create a mess of
either WARN_ON/BUG_ON calls triggered at a later point in time (if a
station was connected), or just a complete loss of wifi functionality.
- Felix
prev parent reply other threads:[~2012-10-06 10:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-03 19:07 [PATCH 3.7 1/3] ath9k: fix ASPM initialization on resume Felix Fietkau
2012-10-03 19:07 ` [PATCH 3.7 2/3] ath9k: improve suspend/resume reliability Felix Fietkau
2012-10-03 19:07 ` [PATCH 3.7 3/3] ath9k: use ieee80211_free_txskb Felix Fietkau
2012-10-04 2:33 ` [PATCH 3.7 2/3] ath9k: improve suspend/resume reliability Sujith Manoharan
2012-10-04 9:33 ` Felix Fietkau
2012-10-06 10:46 ` Manoharan, Sujith
2012-10-06 10:59 ` Felix Fietkau [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=50700F1B.1050405@openwrt.org \
--to=nbd@openwrt.org \
--cc=c_manoha@qti.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=rodrigue@qca.qualcomm.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;
as well as URLs for NNTP newsgroup(s).