From: RgC <sessyargc@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] mmc: Split device init to decouple OCR-polling delay
Date: Sun, 21 Oct 2012 17:12:05 +0900 [thread overview]
Message-ID: <20121021081205.GA38028@crg> (raw)
In-Reply-To: <1350789360-27032-2-git-send-email-sjg@chromium.org>
Hi All,
On 2012.10/20, Simon Glass wrote:
> From: Che-Liang Chiou <clchiou@chromium.org>
>
> Most of time that MMC driver spends on initializing a device is polling
> OCR (operation conditions register). To decouple this polling loop,
> device init is split into two parts: The first part fires the OCR query
> command, and the second part polls the result. So the caller is now no
> longer bound to the OCR-polling delay; he may fire the query, go
> somewhere and then come back later for the result.
>
> To use this, call mmc_set_preinit() on any device which needs this.
>
> This can save significant amounts of time on boot (e.g. 200ms) by
> hiding the MMC init time behind other init.
>
Please note that this patch has a conflict with the patch from Kim Phillips'
[U-Boot,28/32] drivers/mmc/mmc.c: sparse fixes (191937 in patchworks)
I had to apply this patch first before patching Kim's modifications which
succeeds with the hunk offsets adjusted. It builds OK with the eldk 5.2.1
for powerpc. Will test these on an ml507 when I have time.
Regards,
Rommel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121021/37b5f353/attachment.pgp>
next prev parent reply other threads:[~2012-10-21 8:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-21 3:15 [U-Boot] [PATCH 1/2] mmc: Fix interpretation of MMC_CMD_ALL_SEND_CID Simon Glass
2012-10-21 3:16 ` [U-Boot] [PATCH 2/2] mmc: Split device init to decouple OCR-polling delay Simon Glass
2012-10-21 8:12 ` RgC [this message]
2012-10-25 19:27 ` Simon Glass
2012-11-27 23:33 ` Andy Fleming
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=20121021081205.GA38028@crg \
--to=sessyargc@gmail.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