]> 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>
Sat, 12 Nov 2011 02:41:08 +0000 (21:41 -0500)
commit475f658bb57dbd82b8a1c3a5b52d992e9ac5665d
treec76883600464edb41f0ba1eea5631fa0632b9b6d
parentdee93657d7f56ba9d2ea06bc52e4e364fd660b25
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