]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci-omap: Disable MMC_CAP_AGGRESSIVE_PM for eMMC/SD
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 12 Mar 2025 12:17:12 +0000 (13:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:37:42 +0000 (14:37 +0200)
commit 49d162635151d0dd04935070d7cf67137ab863aa upstream.

We have received reports about cards can become corrupt related to the
aggressive PM support. Let's make a partial revert of the change that
enabled the feature.

Reported-by: David Owens <daowens01@gmail.com>
Reported-by: Romain Naour <romain.naour@smile.fr>
Reported-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Fixes: 3edf588e7fe0 ("mmc: sdhci-omap: Allow SDIO card power off and enable aggressive PM")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20250312121712.1168007-1-ulf.hansson@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-omap.c

index 0a26831b3b67d4abc513dd5255a53f67d6990eea..713ac30327661eb3a247f9a6c7750169fff1842e 100644 (file)
@@ -1339,8 +1339,8 @@ static int sdhci_omap_probe(struct platform_device *pdev)
        /* R1B responses is required to properly manage HW busy detection. */
        mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
 
-       /* Allow card power off and runtime PM for eMMC/SD card devices */
-       mmc->caps |= MMC_CAP_POWER_OFF_CARD | MMC_CAP_AGGRESSIVE_PM;
+       /*  Enable SDIO card power off. */
+       mmc->caps |= MMC_CAP_POWER_OFF_CARD;
 
        ret = sdhci_setup_host(host);
        if (ret)