From: Sergey Matyukevich <geomatsi@gmail.com>
To: Luciano Coelho <luciano.coelho@nokia.com>
Cc: linux-wireless@vger.kernel.org
Subject: wl1271: how to use without runtime pm
Date: Thu, 30 Dec 2010 00:07:37 +0300 [thread overview]
Message-ID: <20101230000737.74d30852@lair> (raw)
Hello Luciano,
I use omap3evm board with wl1271 extension module. Current version of
wl1271 driver works fine on upstream kernel and (with minor
modifications resulting from older mac80211) on 2.6.32 kernel with
integrated SDIO runtime PM patches from Ohad Ben-Cohen.
In the current kernel runtime PM support is always enabled for
omap2plus boards. However this is not the case for the earlier kernels.
Besides, on some other boards there might be no gpio pin to control
power supply of wl1271 card.
So the question is: what is the proper use of wl1271 driver in the case
when wl1271 card is powered all the time ?
In a simple experiment I removed all pm_runtime functions from
wl1271_sdio.c and removed MMC_CAP_POWER_OFF_CARD flag from mmc slot
settings in board file. However I can't do ifdown/ifup procedure
properly:
root@omap3evm_minimal:~# ifconfig wlan0 down
root@omap3evm_minimal:~# ifconfig wlan0 up
[ 55.313201] wl1271: ERROR timeout waiting for the hardware to
complete initialization
[ 58.813964] wl1271: ERROR timeout waiting for the hardware to
complete initialization
[ 60.648651] wl1271: ERROR sdio read failed (-110)
[ 60.653686] wl1271: ERROR sdio write failed (-110)
[ 62.057067] wl1271: ERROR sdio read failed (-110)
[ 62.062072] wl1271: ERROR chip id doesn't match after firmware boot
[ 62.068786] wl1271: ERROR firmware boot failed despite 3 retries
ifconfig: SIOCSIFFLAGS: Input/output error
It looks like init procedure of wl1271 card can not be done twice
without powering off wl1271 card.
Thanks,
Sergey
next reply other threads:[~2010-12-29 21:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-29 21:07 Sergey Matyukevich [this message]
2010-12-29 21:22 ` wl1271: how to use without runtime pm Ohad Ben-Cohen
2010-12-30 22:08 ` Sergey Matyukevich
2010-12-31 8:00 ` Luciano Coelho
2012-02-15 9:57 ` Santosh Shukla
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=20101230000737.74d30852@lair \
--to=geomatsi@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=luciano.coelho@nokia.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).