]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: Add quirk for long data read time
authorStefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
Thu, 3 Nov 2011 08:44:12 +0000 (09:44 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 15 Nov 2011 13:07:56 +0000 (08:07 -0500)
commitf981ad6de8d10a49bdbd1ed646745b077178dc37
treeb8b99914f7dab08ac13ba9c8a00c250bf710e30a
parentda0b92c0bc2b2373e95645a72b9fe5b4feda9e56
mmc: core: Add quirk for long data read time

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 chosen
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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c
drivers/mmc/core/core.c
include/linux/mmc/card.h