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

Commit 0539ab03 authored by Konstantin Dorfman's avatar Konstantin Dorfman
Browse files

mmc: card: quirk: disable HPI for Kingston card



Certain Kingston eMMC 4.41 cards might get broken when HPI feature.
This quirk will disable the HPI feature for such buggy cards.

There are features depending on HPI, the change will disable them:
- BKOPS support
- stop transmission flow
- CACHE_CTRL

Change-Id: Ie675f6cb0646c06458ac8eee9a38d12fbc485be5
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
parent 2a60bd28
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -66,6 +66,10 @@ static const struct mmc_fixup mmc_fixups[] = {
	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
+1 −0
Original line number Diff line number Diff line
@@ -455,6 +455,7 @@ struct mmc_fixup {
#define CID_MANFID_TOSHIBA	0x11
#define CID_MANFID_MICRON	0x13
#define CID_MANFID_SAMSUNG	0x15
#define CID_MANFID_KINGSTON	0x70
#define CID_MANFID_HYNIX	0x90

#define END_FIXUP { 0 }