From: Chris Ball <cjb@laptop.org>
To: Chase Maupin <Chase.Maupin@ti.com>
Cc: linux-omap@vger.kernel.org, linux-mmc@vger.kernel.org
Subject: Re: [PATCH] mmc: omap_hsmmc: set dto to 14 for all devices
Date: Thu, 08 Mar 2012 23:38:56 -0500 [thread overview]
Message-ID: <m2399iqtgf.fsf@bob.laptop.org> (raw)
In-Reply-To: <1330622780-1909-1-git-send-email-Chase.Maupin@ti.com> (Chase Maupin's message of "Thu, 1 Mar 2012 11:26:20 -0600")
Hi Chase,
On Thu, Mar 01 2012, Chase Maupin wrote:
> * With certain SD cards timeouts like the following have been seen
> due to an improper calculation of the dto value:
> mmcblk0: error -110 transferring data, sector 4126233, nr 8,
> card status 0xc00
> * By removing the dto calculation and setting the timeout value
> to the maximum specified by the SD card specification part A2
> section 2.2.15 these timeouts can be avoided.
> * This change has been used by beagleboard users as well as the
> Texas Instruments SDK without a negative impact.
> * There are multiple discussion threads about this but the most
> relevant ones are:
> * http://talk.maemo.org/showthread.php?p=1000707#post1000707
> * http://www.mail-archive.com/linux-omap@vger.kernel.org/msg42213.html
> * Original proposal for this fix was done by Sukumar Ghoral of
> Texas Instruments
>
> * Tested using a Texas Instruments AM335x EVM
>
> Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Thanks, I've pushed this to mmc-next for 3.4. (With a trivial
indentation fix, below.)
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 82b400793..9d4ce1c 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1360,7 +1360,7 @@ static void set_data_timeout(struct omap_hsmmc_host *host)
if (clkd == 0)
clkd = 1;
- /* Use the maximum timeout value allowed in the standard of 14 or 0xE */
+ /* Use the maximum timeout value allowed in the standard of 14 or 0xE */
dto = 14;
reg &= ~DTO_MASK;
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2012-03-09 4:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 17:26 [PATCH] mmc: omap_hsmmc: set dto to 14 for all devices Chase Maupin
2012-03-06 12:54 ` Maupin, Chase
2012-03-09 4:38 ` Chris Ball [this message]
2012-03-09 13:06 ` Maupin, Chase
2012-03-12 10:58 ` Paul Walmsley
2012-03-12 11:10 ` Paul Walmsley
2012-03-12 14:37 ` Maupin, Chase
2012-03-16 3:22 ` Chris Ball
2012-04-05 22:08 ` Tony Lindgren
2012-04-05 22:15 ` Chris Ball
2012-04-05 23:44 ` Paul Walmsley
2012-04-05 23:54 ` Chris Ball
2012-04-12 9:46 ` Tushar Behera
2012-04-12 17:56 ` Paul Walmsley
2012-04-12 18:19 ` Chris Ball
2012-04-14 9:38 ` Paul Walmsley
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=m2399iqtgf.fsf@bob.laptop.org \
--to=cjb@laptop.org \
--cc=Chase.Maupin@ti.com \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
/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