diff mbox

[1/2] mmc : Add unmmapped zero quirk flag

Message ID 20171107070259.11664-1-js07.lee@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jungseung Lee Nov. 7, 2017, 7:02 a.m. UTC
Some devices return zeroes on read to unmmaped logical blocks.
This patch adds a flag to the mmc quirk list for the devices work that way.

Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
---
 include/linux/mmc/card.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index 279b390..f032cb0 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -268,6 +268,7 @@  struct mmc_card {
 #define MMC_QUIRK_BROKEN_IRQ_POLLING	(1<<11)	/* Polling SDIO_CCCR_INTx could create a fake interrupt */
 #define MMC_QUIRK_TRIM_BROKEN	(1<<12)		/* Skip trim */
 #define MMC_QUIRK_BROKEN_HPI	(1<<13)		/* Disable broken HPI support */
+#define MMC_QUIRK_UNMAPPED_ZEROES	(1<<14)	/* Return 0's on read to unmmaped logical blocks */
 
 	bool			reenable_cmdq;	/* Re-enable Command Queue */