Loading drivers/mmc/card/block.c +0 −3 Original line number Diff line number Diff line Loading @@ -3192,9 +3192,6 @@ static const struct mmc_fixup blk_fixups[] = MMC_FIXUP("SEM04G", 0x45, CID_OEMID_ANY, add_quirk_mmc, MMC_QUIRK_INAND_DATA_TIMEOUT), /* Disable cache for this cards */ MMC_FIXUP("H8G2d", CID_MANFID_HYNIX, CID_OEMID_ANY, add_quirk_mmc, MMC_QUIRK_CACHE_DISABLE), END_FIXUP }; Loading drivers/mmc/core/mmc.c +8 −5 Original line number Diff line number Diff line Loading @@ -66,6 +66,14 @@ 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), /* * 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), END_FIXUP }; Loading Loading @@ -1579,11 +1587,6 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, card->ext_csd.cache_ctrl = 1; } } if (card->quirks & MMC_QUIRK_CACHE_DISABLE) { pr_warn("%s: This is Hynix card, cache disabled!\n", mmc_hostname(card->host)); card->ext_csd.cache_ctrl = 0; } /* * The mandatory minimum values are defined for packed command. Loading Loading
drivers/mmc/card/block.c +0 −3 Original line number Diff line number Diff line Loading @@ -3192,9 +3192,6 @@ static const struct mmc_fixup blk_fixups[] = MMC_FIXUP("SEM04G", 0x45, CID_OEMID_ANY, add_quirk_mmc, MMC_QUIRK_INAND_DATA_TIMEOUT), /* Disable cache for this cards */ MMC_FIXUP("H8G2d", CID_MANFID_HYNIX, CID_OEMID_ANY, add_quirk_mmc, MMC_QUIRK_CACHE_DISABLE), END_FIXUP }; Loading
drivers/mmc/core/mmc.c +8 −5 Original line number Diff line number Diff line Loading @@ -66,6 +66,14 @@ 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), /* * 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), END_FIXUP }; Loading Loading @@ -1579,11 +1587,6 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, card->ext_csd.cache_ctrl = 1; } } if (card->quirks & MMC_QUIRK_CACHE_DISABLE) { pr_warn("%s: This is Hynix card, cache disabled!\n", mmc_hostname(card->host)); card->ext_csd.cache_ctrl = 0; } /* * The mandatory minimum values are defined for packed command. Loading