From: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
To: Chris Ball <cjb@laptop.org>
Cc: linux-mmc@vger.kernel.org, Sascha Hauer <s.hauer@pengutronix.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mmc: Reduce fOD to 200 kHz if possible
Date: Thu, 16 Sep 2010 09:55:00 +0200 [thread overview]
Message-ID: <20100916095500.7e79fc0f@hskinnemoen-d830> (raw)
In-Reply-To: <20100915135719.GA1677@void.printf.net>
Chris Ball <cjb@laptop.org> wrote:
> Hi Haavard,
>
> On Wed, Sep 15, 2010 at 10:59:00AM +0200, Haavard Skinnemoen wrote:
> > Since the identification frequency was increased to 400 kHz, my
> > ATSTK1000 board has not been able to initialize any MMC or SD cards.
> > Reducing the identification mode frequency to 200 kHz fixes the problem.
>
> Good news -- there's already a patch to fix this in -mm.
>
> Please test http://article.gmane.org/gmane.linux.kernel.commits.mm/62969
> and let us know whether it works for you.
It does, sort of. I get this:
atmel_mci atmel_mci.0: Atmel MCI controller at 0xfff02400 irq 28, 1 slots
mmc0: mmc_rescan: trying to init card at 400000 Hz
Freeing init memory: 916K (90000000 - 900e5000)
mmc0: mmc_rescan: trying to init card at 300000 Hz
mmc0: mmc_rescan: trying to init card at 200000 Hz
mmc0: mmc_rescan: trying to init card at 136719 Hz
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address 1234
mmcblk0: mmc0:1234 SD1GB 972 MiB
mmcblk0: p1
which is mostly ok, since it does succeed at initializing the card
eventually, but it is somewhat surprising that it needs to go all the
way down to 136 kHz. Usually, it works fine at 200 kHz.
On the other hand, I did try something else before testing the 200 kHz
patch: I enabled the internal pull-ups on the MMC lines. Turning them
off again makes the card initialization fail at 200 kHz.
So please ignore my patch, and let's go for Hein's patch instead.
Haavard
prev parent reply other threads:[~2010-09-16 7:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-15 8:59 Haavard Skinnemoen
2010-09-15 9:50 ` Ben Nizette
2010-09-15 10:51 ` Haavard Skinnemoen
2010-09-15 14:08 ` Chris Ball
2010-09-15 14:31 ` Hein_Tibosch
2010-09-15 15:10 ` Haavard Skinnemoen
2010-09-15 13:57 ` Chris Ball
2010-09-16 7:55 ` Haavard Skinnemoen [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=20100916095500.7e79fc0f@hskinnemoen-d830 \
--to=haavard.skinnemoen@atmel.com \
--cc=cjb@laptop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
/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
all inboxes | Powered by JetHome®