public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Jungseung Lee <js07.lee@samsung.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
	Christoph Hellwig <hch@lst.de>,
	js07.lee@gmail.com, linux-mmc@vger.kernel.org
Cc: Jungseung Lee <js07.lee@samsung.com>
Subject: [PATCH 1/2] mmc : Add unmmapped zero quirk flag
Date: Tue, 07 Nov 2017 16:02:58 +0900	[thread overview]
Message-ID: <20171107070259.11664-1-js07.lee@samsung.com> (raw)
In-Reply-To: CGME20171107070318eucas1p18f1f745136c9cea51468a20004a55666@eucas1p1.samsung.com

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 --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 */
 
-- 
2.10.1


       reply	other threads:[~2017-11-07  7:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171107070318eucas1p18f1f745136c9cea51468a20004a55666@eucas1p1.samsung.com>
2017-11-07  7:02 ` Jungseung Lee [this message]
2017-11-07  7:02   ` [PATCH 2/2] mmc : implement REQ_OP_WRITE_ZEROES Jungseung Lee
2017-11-07  7:10     ` Christoph Hellwig
2017-11-07 12:54     ` Ulf Hansson
2017-11-08 14:25       ` Jungseung Lee
2017-11-09 12:33         ` Ulf Hansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171107070259.11664-1-js07.lee@samsung.com \
    --to=js07.lee@samsung.com \
    --cc=hch@lst.de \
    --cc=js07.lee@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox