From: blacksilver Date: Mon, 18 Dec 2023 10:15:55 +0000 (+0100) Subject: DONOTMERGE: Hack: Always disable MMC cache to avoid card becoming stuck. X-Git-Tag: v6.7-pxa1908~12 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e671cc7e53b17d92e711325e47e1b0199b1266c5;p=linux.git DONOTMERGE: Hack: Always disable MMC cache to avoid card becoming stuck. [ 0.210673] mmc0: SDHCI controller on d4281000.mmc [d4281000.mmc] using ADMA [ 0.301489] mmc0: new DDR MMC card at address 0001 [ 0.302156] mmcblk0: mmc0:0001 QNW00A 7.28 GiB [ 0.308976] mmcblk0boot0: mmc0:0001 QNW00A 4.00 MiB [ 0.310318] mmcblk0boot1: mmc0:0001 QNW00A 4.00 MiB [ 0.311571] mmcblk0rpmb: mmc0:0001 QNW00A 512 KiB, chardev (248:0) [ 171.353426] mmc0: Card stuck being busy! __mmc_poll_for_busy [ 171.353443] mmc0: cache flush error -110 [ 201.399007] mmc0: Card stuck being busy! __mmc_poll_for_busy [ 201.399023] mmc0: cache flush error -110 [ 231.415093] mmc0: Card stuck being busy! __mmc_poll_for_busy [ 231.415109] mmc0: cache flush error -110 [ 261.464688] mmc0: Card stuck being busy! __mmc_poll_for_busy [ 261.464703] mmc0: cache flush error -110 --- diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 00443451c9e4..911972e968fd 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -2076,8 +2076,9 @@ static void mmc_detect(struct mmc_host *host) static bool _mmc_cache_enabled(struct mmc_host *host) { - return host->card->ext_csd.cache_size > 0 && - host->card->ext_csd.cache_ctrl & 1; + return false; + /*return host->card->ext_csd.cache_size > 0 && + host->card->ext_csd.cache_ctrl & 1;*/ } /*