mmc: core: Add quirk for long data read time
commit6de5fc9cf7de334912de4cfd2d06eb2d744d2afe
authorStefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
Thu, 3 Nov 2011 08:44:12 +0000 (3 09:44 +0100)
committerChris Ball <cjb@laptop.org>
Sat, 10 Dec 2011 21:18:35 +0000 (10 16:18 -0500)
tree473198b98663f0e84fc69b70f2fca12dad7f9b9c
parent7833c66b2d764a3c883c2f5cc60cd8a6266dae15
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