From a89dfb1bbd09b7625eca50ce02448a517c7156c6 Mon Sep 17 00:00:00 2001 From: Talel Shenhar Date: Thu, 5 Feb 2015 14:44:15 +0200 Subject: mmc: quirks: add new quirk that allows HPI disable Certain cards might get broken when HPI feature is used. This patch allows host to avoid using HPI for such buggy cards by adding new quirk. As some of the other features like BKOPs/Cache are dependent on HPI feature, those features would also get disabled if HPI is disabled. Change-Id: I93a8810e4031eafcd44b5152296e065dc3330b63 Signed-off-by: Talel Shenhar --- include/linux/mmc/card.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index a9c756549c2f..a16fd1739371 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -306,6 +306,8 @@ struct mmc_card { #define MMC_QUIRK_TRIM_BROKEN (1<<12) /* Skip trim */ /* byte mode */ #define MMC_QUIRK_INAND_DATA_TIMEOUT (1<<13) /* For incorrect data timeout */ +#define MMC_QUIRK_BROKEN_HPI (1 << 14) /* For devices which gets */ + /* broken due to HPI feature */ unsigned int erase_size; /* erase size in sectors */ -- cgit v1.2.3