From: Chris Ball <cjb@laptop.org>
To: Stefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
Cc: linux-mmc@vger.kernel.org, Per Forlin <per.forlin@stericsson.com>,
Ulf Hansson <ulf.hansson@stericsson.com>
Subject: Re: [PATCH] mmc: core: Quirk for long data read time
Date: Fri, 11 Nov 2011 21:40:26 -0500 [thread overview]
Message-ID: <87obwihxlx.fsf@laptop.org> (raw)
In-Reply-To: <1320309852-21893-1-git-send-email-stefan.xk.nilsson@stericsson.com> (Stefan Nilsson's message of "Thu, 3 Nov 2011 09:44:12 +0100")
Hi,
On Thu, Nov 03 2011, Stefan Nilsson XK wrote:
> Adds a quirk that sets the data read timeout to a fixed value instead
> of relying on the information in the CSD. The timeout value choosen
> is 300ms since that has proven enough for the problematic cards found,
> but could be increased if other cards require this.
>
> This patch also enables this quirk for certain Micron cards known to
> have this problem.
>
> Signed-off-by: Stefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
> Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
> ---
> drivers/mmc/card/block.c | 7 +++++++
> drivers/mmc/core/core.c | 12 ++++++++++++
> include/linux/mmc/card.h | 6 ++++++
> 3 files changed, 25 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
> index 4fd5723..04af5e5 100644
> --- a/drivers/mmc/card/block.c
> +++ b/drivers/mmc/card/block.c
> @@ -1603,6 +1603,13 @@ static const struct mmc_fixup blk_fixups[] =
> MMC_QUIRK_BLK_NO_CMD23),
> MMC_FIXUP("MMC32G", 0x11, CID_OEMID_ANY, add_quirk_mmc,
> MMC_QUIRK_BLK_NO_CMD23),
> +
> + /*
> + * Some Micron MMC cards needs longer data read timeout than
> + * indicated in CSD.
> + */
> + MMC_FIXUP("", 0x13, 0x200, add_quirk_mmc, MMC_QUIRK_LONG_READ_TIME),
I think we should use CID_NAME_ANY instead of "", so I'll push that
change unless you object. Thanks!
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2011-11-12 2:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-03 8:44 [PATCH] mmc: core: Quirk for long data read time Stefan Nilsson XK
2011-11-03 11:32 ` Linus Walleij
2011-11-12 2:37 ` Chris Ball
2011-11-12 2:40 ` Chris Ball [this message]
2011-11-14 9:05 ` Ulf Hansson
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=87obwihxlx.fsf@laptop.org \
--to=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=per.forlin@stericsson.com \
--cc=stefan.xk.nilsson@stericsson.com \
--cc=ulf.hansson@stericsson.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox