Re: [RFC] sdhci: timeouts

From: Charles Hannum
Date: Sat May 28 2011 - 19:19:18 EST


On Sat, May 28, 2011 at 19:09, Charles Hannum <root@xxxxxxxxx> wrote:
> 4) Ultimately I found that some SDHC cards just seem to take a good
> long time to respond.  I ended up increasing the write timeout to 1s
> and I've encountered 0 problems since then.  Since this is only an
> error condition, and therefore hardly of any performance concerns, I
> suggest it may be a good idea to do this in general.  See attached
> patch sdhci-timeout-limit.diff

BTW, I should mention that, with a TMCLK of 33000 (very common,
because it's just the PCI bus clock), increasing the limit from 300000
to 1000000 us actually increases the “counter” value by exactly 1
(from 11 to 12). This is probably why the older controller-specific
hack of simply incrementing the counter worked.
--
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/