Re: [PATCH] mmc: core: Quirk for long data read time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxxxxxx>
> ---
>  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@xxxxxxxxxx>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux