summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuoping Yu <guopingy@codeaurora.org>2014-08-06 12:44:55 +0800
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-19 18:35:49 -0700
commit2e5975b12aeb6b3cc34ca65edeb742590d7a151a (patch)
treeb8befdc51c47e58a4dbb14d4112dadaa2a989624
parent708e9f009fd4f10d281c132c509c5f903ec1bd31 (diff)
mmc: core: add long read time fixup for certain Samsung eMMC
Certain Samsung eMMC meet multi read timeout, and could not reponse status CMD anymore after that. Add long read timeout fixup to resolve it. Change-Id: Ibeb0e6ab3d889d48fdee91244bec720a6994b907 Signed-off-by: Guoping Yu <guopingy@codeaurora.org> [venkatg@codeaurora.org: fix trivial merge conflict] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
-rw-r--r--drivers/mmc/card/block.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 21aa3244029b..9ad1cfded1b6 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -2516,6 +2516,13 @@ static const struct mmc_fixup blk_fixups[] =
MMC_QUIRK_LONG_READ_TIME),
/*
+ * Some Samsung MMC cards need longer data read timeout than
+ * indicated in CSD.
+ */
+ MMC_FIXUP("Q7XSAB", CID_MANFID_SAMSUNG, 0x100, add_quirk_mmc,
+ MMC_QUIRK_LONG_READ_TIME),
+
+ /*
* On these Samsung MoviNAND parts, performing secure erase or
* secure trim can result in unrecoverable corruption due to a
* firmware bug.