Re: [RFC][PATCH] MMC: Use write timeout value as read from CSR

From: David Brownell
Date: Mon Sep 08 2008 - 15:25:40 EST


On Monday 08 September 2008, Matt Fleming wrote:
> Currently, the MMC/SD over SPI code has a hard-coded timeout value of
> 250ms on writes and 100ms on reads. This is correct for SDHC cards
> and is specified in the spec, but it is not correct for MMC/SD cards.
>
> For MMC cards the values that are read from the CSR should be used.
> For SD cards the values from the CSR should be used as long as they
> do not exceed 250ms for writes and 100ms for reads.
>
> Signed-off-by: Matthew Fleming <matthew.fleming@xxxxxxxxxx>

OK by me. I was viewing those values as ceilings, such that
waiting too long wouldn't much matter. If there are cases
where the CSR values are larger, they clearly should trump.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/