mmc: core: Prevent HSQ from enabling for SDUC
authorAvri Altman <avri.altman@wdc.com>
Sun, 6 Oct 2024 05:11:47 +0000 (08:11 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Oct 2024 10:40:09 +0000 (12:40 +0200)
hsq allows to get more in-flight requests from mmc core, which can be
prepared in advance and be issued asynchronously to the completion of
the preceding request (in atomic context). This is presumably broken
though by the mandatory CMD22 for SDUC.

We plan to make it work, but only as an improvement on top of the
initial support for SDUC.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20241006051148.160278-10-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sd.c

index 63915541c0e494388e4749b6efca57df5a653aaf..33e806adcbf7b6fbd30958d9725f8668ba75b0a7 100644 (file)
@@ -1558,7 +1558,7 @@ cont:
                        goto free_card;
        }
 
-       if (host->cqe_ops && !host->cqe_enabled) {
+       if (!mmc_card_ult_capacity(card) && host->cqe_ops && !host->cqe_enabled) {
                err = host->cqe_ops->cqe_enable(host, card);
                if (!err) {
                        host->cqe_enabled = true;