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

Commit 19679496 authored by Talel Shenhar's avatar Talel Shenhar Committed by Matt Wagantall
Browse files

mmc: block: avoid HPI for some Kingston cards



Certain cards might get broken when HPI feature is used.
This patch uses the HPI quirk to avoid the usage
of HPI on Kingston MMC16G cards that have
EXT_CSD_REV = 5 (mmc version 4.41)

Change-Id: I4572eb9e71a281b56e25e5b4864d5777b16e2bc2
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
parent 058b08a2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -123,6 +123,15 @@ static void mmc_set_erase_size(struct mmc_card *card)
	mmc_init_erase(card);
}

static const struct mmc_fixup mmc_fixups[] = {

	/* avoid HPI for specific cards */
	MMC_FIXUP_EXT_CSD_REV("MMC16G", CID_MANFID_KINGSTON, CID_OEMID_ANY,
		add_quirk, MMC_QUIRK_BROKEN_HPI, MMC_V4_41),

	END_FIXUP
};

/*
 * Given a 128-bit response, decode to our card CSD structure.
 */
+1 −0
Original line number Diff line number Diff line
@@ -392,6 +392,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_ANY (-1u)
#define CID_OEMID_ANY ((unsigned short) -1)