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

Commit 5b79103e authored by Talel Shenhar's avatar Talel Shenhar Committed by Gerrit - the friendly Code Review server
Browse files

mmc: card: remove HPI and Cache quirks for Hynix cards



This change removes quirks for Hynix cards.
These quirks were used to avoid HPI and Cache
feature for specific Hynix cards due to
issues such as data corruption.
After further discussion with the card vendor it was
decided to restore the usage of these features.

Change-Id: I3fc85064eb427f6b3b6a4a941d8251341a6137d0
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
parent 271ae661
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -60,24 +60,11 @@ static const unsigned int tacc_mant[] = {
	})

static const struct mmc_fixup mmc_fixups[] = {
	/*
	 * Certain Hynix eMMC 4.41 cards might get broken when HPI feature
	 * is used so disable the HPI feature for such buggy cards.
	 */
	MMC_FIXUP_EXT_CSD_REV(CID_NAME_ANY, CID_MANFID_HYNIX,
			      0x014a, add_quirk, MMC_QUIRK_BROKEN_HPI, 5),

	/* Disable HPI feature for Kingstone card */
	MMC_FIXUP_EXT_CSD_REV("MMC16G", CID_MANFID_KINGSTON, CID_OEMID_ANY,
			add_quirk, MMC_QUIRK_BROKEN_HPI, 5),

	/*
	 * Some Hynix cards exhibit data corruption over reboots if cache is
	 * enabled. Disable cache for all versions until a class of cards that
	 * show this behavior is identified.
	 */
	MMC_FIXUP("H8G2d", CID_MANFID_HYNIX, CID_OEMID_ANY, add_quirk_mmc,
		  MMC_QUIRK_CACHE_DISABLE),
	MMC_FIXUP(CID_NAME_ANY, CID_MANFID_NUMONYX_MICRON, CID_OEMID_ANY,
		add_quirk_mmc, MMC_QUIRK_CACHE_DISABLE),
	MMC_FIXUP("MMC16G", CID_MANFID_KINGSTON, CID_OEMID_ANY, add_quirk_mmc,