]> git.baikalelectronics.ru Git - kernel.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>
Sat, 10 Dec 2011 21:18:35 +0000 (16:18 -0500)
commitc00895f63d712a12de488a17c6ba071a0d3a1e1b
tree473198b98663f0e84fc69b70f2fca12dad7f9b9c
parentef5a036ef9e92eea30eff4eb96213987f2026ffa
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