summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-10-09 08:58:30 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-10-09 08:58:30 +0200
commit937fb531d3b7da1f5686ee7e1b6f6ac5f5cbbcb0 (patch)
treea1b38ab33c9e62edde50b978cda5d1e4ea528d5b
parentdb1af1e9712920f47b5dc6a995fca3eec05ea85e (diff)
parent4243219141b67d7c2fdb2d8073c17c539b9263eb (diff)
Merge branch 'fixes' into next
-rw-r--r--drivers/mmc/core/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c
index 6c022ef0f84d..350d0cc4ee62 100644
--- a/drivers/mmc/core/queue.c
+++ b/drivers/mmc/core/queue.c
@@ -190,7 +190,7 @@ static void mmc_queue_setup_discard(struct request_queue *q,
q->limits.discard_granularity = card->pref_erase << 9;
/* granularity must not be greater than max. discard */
if (card->pref_erase > max_discard)
- q->limits.discard_granularity = 0;
+ q->limits.discard_granularity = SECTOR_SIZE;
if (mmc_can_secure_erase_trim(card))
blk_queue_flag_set(QUEUE_FLAG_SECERASE, q);
}