linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wl1271: how to use without runtime pm
@ 2010-12-29 21:07 Sergey Matyukevich
  2010-12-29 21:22 ` Ohad Ben-Cohen
  0 siblings, 1 reply; 5+ messages in thread
From: Sergey Matyukevich @ 2010-12-29 21:07 UTC (permalink / raw)
  To: Luciano Coelho; +Cc: linux-wireless

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-15 10:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-29 21:07 wl1271: how to use without runtime pm Sergey Matyukevich
2010-12-29 21:22 ` Ohad Ben-Cohen
2010-12-30 22:08   ` Sergey Matyukevich
2010-12-31  8:00     ` Luciano Coelho
2012-02-15  9:57       ` Santosh Shukla

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).