summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card/queue.c
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2011-10-14 07:15:48 +0200
committerChris Ball <cjb@laptop.org>2011-10-26 22:32:26 +0200
commitd9ddd62943ee07a75d0428ffcf52f1a747a28c39 (patch)
treee4fb8b0b2ba2fe39bf725762b2c04441f1adf3b8 /drivers/mmc/card/queue.c
parentmmc: dw_mmc: modify DATA register offset (diff)
downloadlinux-d9ddd62943ee07a75d0428ffcf52f1a747a28c39.tar.xz
linux-d9ddd62943ee07a75d0428ffcf52f1a747a28c39.zip
mmc: core: mmc sanitize feature support for v4.5
In the v4.5, there's no secure erase & trim support. Instead it supports the sanitize feature. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/card/queue.c')
-rw-r--r--drivers/mmc/card/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
index fed290ecc242..dcad59cbfef1 100644
--- a/drivers/mmc/card/queue.c
+++ b/drivers/mmc/card/queue.c
@@ -140,7 +140,7 @@ static void mmc_queue_setup_discard(struct request_queue *q,
/* granularity must not be greater than max. discard */
if (card->pref_erase > max_discard)
q->limits.discard_granularity = 0;
- if (mmc_can_secure_erase_trim(card))
+ if (mmc_can_secure_erase_trim(card) || mmc_can_sanitize(card))
queue_flag_set_unlocked(QUEUE_FLAG_SECDISCARD, q);
}