From: Eric Nelson <eric@nelint.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register
Date: Fri, 4 Dec 2015 12:24:58 -0700 [thread overview]
Message-ID: <5661E88A.9020802@nelint.com> (raw)
In-Reply-To: <5661E0B0.7010407@digi.com>
Thanks Hector,
On 12/04/2015 11:51 AM, Hector Palacios wrote:
> On 12/04/2015 07:33 PM, Eric Nelson wrote:
>> On 12/04/2015 10:43 AM, Eric Nelson wrote:
...
>> From what I can tell, the linux kernel doesn't do this test and
>> doesn't appear to have any trouble.
>>
>> What code base are you running against (u-boot-imx/master)?
>
> I'm running v2015.04 on a non-upstream platform.
>
Thanks.
>> What do you see if you do the same?
>
> The command takes a while and it is erasing all blocks.
> I still get a timeout error at the end and a zero number of sectors, though.
>
> => mmc erase 441000 10000
>
> MMC erase: dev # 0, block # 4460544, count 65536 ... Timeout waiting card ready
> 0 blocks erased: ERROR
>
Erasing 64K blocks should take a while, but I'm not sure why
you're seeing things die at the end.
U-Boot > time mmc erase 441000 10000
MMC erase: dev # 0, block # 4460544, count 65536 ... 65536 blocks erased: OK
time: 28.704 seconds
I did some more testing to see if the prsstat register is accurately
reflecting the state of dat0 by setting the SION bit in the mux ctrl
register for my DAT0 (SD4_DAT0 on an i.MX6Q).
I found that the pin is reading as low through the GPIO2_PSR register
(bit 8):
U-Boot > mmc erase 4000 1000
MMC erase: dev # 0, block # 16384, count 4096 ... Timeout waiting for
DAT0 to go high!
irqstat 0x00000001
GPIO2_PSR(020a0008) == 0xc80000d6
...
The pin shows up as high when idle, reflecting the internal pullup:
U-Boot > md.l 0x020a0008 1
020a0008: c80001d6 ....
I've tested with stronger pull-ups without success, and testing
with a longer timeout indicates that this isn't a slew rate problem.
next prev parent reply other threads:[~2015-12-04 19:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 17:32 [U-Boot] [PATCH] ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register Eric Nelson
2015-12-04 17:38 ` Eric Nelson
2015-12-04 17:43 ` Eric Nelson
2015-12-04 18:24 ` Fabio Estevam
2015-12-04 18:25 ` Hector Palacios
2015-12-04 18:33 ` Eric Nelson
2015-12-04 18:51 ` Hector Palacios
2015-12-04 19:24 ` Eric Nelson [this message]
2015-12-04 17:40 ` Michael Trimarchi
2015-12-04 17:49 ` Eric Nelson
2015-12-04 17:51 ` Michael Trimarchi
2015-12-04 18:39 ` Hector Palacios
2015-12-04 18:53 ` Eric Nelson
2015-12-04 19:32 ` [U-Boot] [PATCH V2] " Eric Nelson
2015-12-04 19:41 ` Fabio Estevam
2015-12-07 14:05 ` Stefano Babic
2015-12-09 10:04 ` Hector Palacios
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=5661E88A.9020802@nelint.com \
--to=eric@nelint.com \
--cc=u-boot@lists.denx.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