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.

mmc: core: Don't use close-ended rw for SDUC

The SDUC spec expects CMD22 to get squeezed between CMD23 and the
read/write command, e.g. CMD23->CMD22->CMD18 and CMD23->CMD22->CMD25.
At this early stage of adoption, we want to avoid an amid stream of
fixes & quirks of bogus hw, that tends to apply extra logic specifically
around auto-cmd12 & auto-cmd23.

Let's leave close-ended out for now, and re-consider this should those
cards become ubiquitous, if any.

It also means that BLK_FEAT_FUA will not be used for I/O, but instead we
will rely on BLK_FEAT_WRITE_CACHE.

Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20241006051148.160278-4-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Avri Altman and committed by
Ulf Hansson
93387385 375b5359

+1 -1
+1 -1
drivers/mmc/core/block.c
··· 2547 2547 if (mmc_host_cmd23(card->host)) { 2548 2548 if ((mmc_card_mmc(card) && 2549 2549 card->csd.mmca_vsn >= CSD_SPEC_VER_3) || 2550 - (mmc_card_sd(card) && 2550 + (mmc_card_sd(card) && !mmc_card_ult_capacity(card) && 2551 2551 card->scr.cmds & SD_SCR_CMD23_SUPPORT)) 2552 2552 md->flags |= MMC_BLK_CMD23; 2553 2553 }