From: Ulf Hansson <ulf.hansson@stericsson.com>
To: Chris Ball <cjb@laptop.org>
Cc: Stefan NILSSON9 <stefan.xk.nilsson@stericsson.com>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
Per FORLIN <per.forlin@stericsson.com>
Subject: Re: [PATCH] mmc: core: Quirk for long data read time
Date: Mon, 14 Nov 2011 10:05:47 +0100 [thread overview]
Message-ID: <4EC0D9EB.7030106@stericsson.com> (raw)
In-Reply-To: <87obwihxlx.fsf@laptop.org>
Chris Ball wrote:
> 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!
No objections, that will work as well!
BR
Ulf Hansson
prev parent reply other threads:[~2011-11-14 9:06 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
2011-11-14 9:05 ` Ulf Hansson [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=4EC0D9EB.7030106@stericsson.com \
--to=ulf.hansson@stericsson.com \
--cc=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=per.forlin@stericsson.com \
--cc=stefan.xk.nilsson@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