From: Daniel Drake <dsd@laptop.org>
To: Ohad Ben-Cohen <ohad@wizery.com>
Cc: linux-mmc@vger.kernel.org
Subject: Re: [PATCH] mmc: sdio: reset card during power_restore
Date: Thu, 9 Jun 2011 17:21:21 +0100 [thread overview]
Message-ID: <BANLkTinfeGUADyi1dTSjPRMnbP+TCtN0dQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimg08VnOMrUwnH6dKzXPJO1fpOh6w@mail.gmail.com>
On 9 June 2011 16:59, Ohad Ben-Cohen <ohad@wizery.com> wrote:
> Now can you please repeat this, but this time add your original patch
> (which only added the CMD5 arg=0 cmd, no sdio reset yet) ?
With this version of the patch:
http://dev.laptop.org/~dsd/20110609/sd-pwr-debug2.patch
bash-4.1# mount -t debugfs none /sys/kernel/debug
bash-4.1# cat /sys/kernel/debug/mmc1/ios
clock: 0 Hz
vdd: 0 (invalid)
bus mode: 1 (open drain)
chip select: 0 (don't care)
power mode: 0 (off)
bus width: 0 (1 bits)
timing spec: 0 (legacy)
bash-4.1#
bash-4.1# insmod /media/4E11-1D7C/libertas_sdio.ko
[ 53.917466] libertas_sdio: Libertas SDIO driver
[ 53.922718] libertas_sdio: Copyright Pierre Ossman
[ 54.839032] libertas_sdio mmc1:0001:1: (unregistered net_device):
00:17:c4:a7:50:57, fw 9.70.3p36, cap 0x000003a3
[ 54.855479] libertas_sdio mmc1:0001:1: wlan0: Marvell WLAN 802.11 adapter
bash-4.1# [ 54.941099] udev[985]: renamed network interface wlan0 to eth0
[ 54.997656] ieee80211 phy0: assoc: bss (null) not in scan results
[ 56.310846] ieee80211 phy0: assoc: bss (null) not in scan results
[ 56.360840] cfg80211: Calling CRDA for country: EU
bash-4.1#
bash-4.1# cat /sys/kernel/debug/mmc1/ios
clock: 25000000 Hz
vdd: 20 (3.2 ~ 3.3 V)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 0 (legacy)
Full log: http://dev.laptop.org/~dsd/20110609/sd-pwr-debug2.txt
Note that the patch includes the mmc_select_voltage() call that I was
originally unsure about, and later did decide that equivalent code was
already being called elsewhere, thats why it was removed from the most
recent revision of the patch.
With a version of the patch that just does the reset, the post-powerup
"vdd" figure does change:
http://dev.laptop.org/~dsd/20110609/sd-pwr-debug3.patch
bash-4.1# cat /sys/kernel/debug/mmc1/ios
clock: 0 Hz
vdd: 0 (invalid)
bus mode: 1 (open drain)
chip select: 0 (don't care)
power mode: 0 (off)
bus width: 0 (1 bits)
timing spec: 0 (legacy)
bash-4.1#
bash-4.1# insmod /media/4E11-1D7C/libertas_sdio.ko
[ 64.947624] libertas_sdio: Libertas SDIO driver
[ 64.952866] libertas_sdio: Copyright Pierre Ossman
[ 65.878171] libertas_sdio mmc1:0001:1: (unregistered net_device):
00:17:c4:a7:50:57, fw 9.70.3p36, cap 0x000003a3
[ 65.896642] libertas_sdio mmc1:0001:1: wlan0: Marvell WLAN 802.11 adapter
bash-4.1# [ 65.991205] udev[984]: renamed network interface wlan0 to eth0
[ 66.048887] ieee80211 phy0: assoc: bss (null) not in scan results
[ 67.373572] ieee80211 phy0: assoc: bss (null) not in scan results
[ 67.423422] cfg80211: Calling CRDA for country: EU
bash-4.1# cat /sys/kernel/debug/mmc1/ios
clock: 25000000 Hz
vdd: 21 (3.3 ~ 3.4 V)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 0 (legacy)
Full log: http://dev.laptop.org/~dsd/20110609/sd-pwr-debug3.txt
For reference, here is the equivalent test performed without runtime
PM enabled (i.e. all changes reverted)
bash-4.1# mount -t debugfs none /sys/kernel/debug
bash-4.1# cat /sys/kernel/debug/mmc1/ios
clock: 25000000 Hz
vdd: 20 (3.2 ~ 3.3 V)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 0 (legacy)
bash-4.1#
bash-4.1# insmod /media/4E11-1D7C/libertas_sdio.ko
[ 69.067761] libertas_sdio: Libertas SDIO driver
[ 69.072995] libertas_sdio: Copyright Pierre Ossman
[ 69.919033] libertas_sdio mmc1:0001:1: (unregistered net_device):
00:17:c4:a7:50:57, fw 9.70.3p36, cap 0x000003a3
[ 69.935429] libertas_sdio mmc1:0001:1: wlan0: Marvell WLAN 802.11 adapter
[ 70.021111] udev[991]: renamed network interface wlan0 to eth0
[ 70.075870] ieee80211 phy0: assoc: bss (null) not in scan results
[ 71.460776] ieee80211 phy0: assoc: bss (null) not in scan results
[ 71.509660] cfg80211: Calling CRDA for country: EU
bash-4.1# cat /sys/kernel/debug/mmc1/ios
clock: 25000000 Hz
vdd: 20 (3.2 ~ 3.3 V)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 0 (legacy)
Full log: http://dev.laptop.org/~dsd/20110609/sd-pwr-debug0.txt
What next?
Thanks,
Daniel
next prev parent reply other threads:[~2011-06-09 16:21 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-05 12:38 [PATCH] mmc: sdio: reset card during power_restore Daniel Drake
2011-06-05 13:48 ` Ohad Ben-Cohen
2011-06-07 16:41 ` Daniel Drake
2011-06-07 20:52 ` Ohad Ben-Cohen
2011-06-08 9:20 ` Daniel Drake
2011-06-08 9:33 ` Ohad Ben-Cohen
2011-06-08 13:36 ` Daniel Drake
2011-06-08 14:02 ` Ohad Ben-Cohen
2011-06-08 14:21 ` Daniel Drake
2011-06-08 20:05 ` Ohad Ben-Cohen
2011-06-08 20:58 ` Daniel Drake
2011-06-09 3:23 ` Ohad Ben-Cohen
2011-06-09 15:51 ` Daniel Drake
2011-06-09 15:59 ` Ohad Ben-Cohen
2011-06-09 16:21 ` Daniel Drake [this message]
2011-06-09 16:30 ` Ohad Ben-Cohen
2011-06-09 16:44 ` Daniel Drake
2011-06-09 17:27 ` Ohad Ben-Cohen
2011-06-09 17:56 ` Daniel Drake
2011-06-09 18:25 ` Ohad Ben-Cohen
2011-06-09 19:55 ` Daniel Drake
2011-06-09 23:27 ` Ohad Ben-Cohen
2011-06-10 16:15 ` Daniel Drake
2011-06-13 19:52 ` Ohad Ben-Cohen
2011-06-16 17:27 ` Daniel Drake
2011-06-16 19:03 ` Philip Rakity
2011-06-16 21:22 ` Ohad Ben-Cohen
2011-06-17 13:58 ` Daniel Drake
2011-06-17 14:31 ` Ohad Ben-Cohen
2011-06-17 15:19 ` Daniel Drake
2011-06-19 10:33 ` Daniel Drake
2011-06-19 11:00 ` Ohad Ben-Cohen
2011-06-25 18:23 ` Daniel Drake
2011-06-27 20:26 ` Ohad Ben-Cohen
2011-06-28 9:13 ` zhangfei gao
2011-06-28 11:10 ` Ohad Ben-Cohen
2011-06-29 8:43 ` zhangfei gao
2011-06-29 8:57 ` Ohad Ben-Cohen
2011-06-29 9:19 ` zhangfei gao
2011-06-29 15:25 ` Ohad Ben-Cohen
2011-06-29 8:56 ` Daniel Drake
2011-06-07 21:01 ` Ohad Ben-Cohen
2011-06-25 18:20 Daniel Drake
2011-06-26 12:33 ` Ohad Ben-Cohen
2011-06-26 15:23 ` Chris Ball
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=BANLkTinfeGUADyi1dTSjPRMnbP+TCtN0dQ@mail.gmail.com \
--to=dsd@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ohad@wizery.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.