From: Avri Altman Date: Sun, 6 Oct 2024 05:11:47 +0000 (+0300) Subject: mmc: core: Prevent HSQ from enabling for SDUC X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a7861651943dac0006f55e0b6db28ed8e9dbe411;p=users%2Fjedix%2Flinux-maple.git mmc: core: Prevent HSQ from enabling for SDUC 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 Link: https://lore.kernel.org/r/20241006051148.160278-10-avri.altman@wdc.com Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 63915541c0e49..33e806adcbf7b 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -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;