Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c1061b2 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: core: Add long read time fixup for certain eMMC cards



Certain vendor eMMC meet multi read timeout, and could not
response status CMD anymore after that. Add long read timeout
fixup to resolve it.

2e5975b1:mmc: core:Add long read time fixup for certain eMMC.

Change-Id: Idbe9e545fae2b9f0d695c8ad3dbea0fd25bade48
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent b62fce34
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -68,6 +68,20 @@ static const struct mmc_fixup mmc_blk_fixups[] = {
	MMC_FIXUP("008GE0", CID_MANFID_TOSHIBA, CID_OEMID_ANY, add_quirk_mmc,
		  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),

	/*
	 * Hynix eMMC cards need longer data read timeout than
	 * indicated in CSD.
	 */
	MMC_FIXUP(CID_NAME_ANY, CID_MANFID_HYNIX, CID_OEMID_ANY, 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