Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'mmc-v5.9-rc4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc

Pull MMC fix from Ulf Hansson:
"Assign a proper discard granularity rather than incorrectly set it to
zero"

* tag 'mmc-v5.9-rc4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
mmc: core: don't set limits.discard_granularity as 0

+1 -1
+1 -1
drivers/mmc/core/queue.c
··· 190 190 q->limits.discard_granularity = card->pref_erase << 9; 191 191 /* granularity must not be greater than max. discard */ 192 192 if (card->pref_erase > max_discard) 193 - q->limits.discard_granularity = 0; 193 + q->limits.discard_granularity = SECTOR_SIZE; 194 194 if (mmc_can_secure_erase_trim(card)) 195 195 blk_queue_flag_set(QUEUE_FLAG_SECERASE, q); 196 196 }