Fix mmc1 microSD detection and suspended unbind abort for a1125 (ampere)

- Drop MMC_CAP2_FULL_PWR_CYCLE from sdhci_msm_probe() while retaining removable-SD-only MMC_CAP_AGGRESSIVE_PM, preventing mmc_select_voltage() from selecting vdd 0x10 (MMC_VDD_28_29) that sdhci_set_power_noreg() rejects

- Raise PM8909 l11 (vmmc-supply) regulator-min-microvolt from 1.80 V (<0x1b7740>) to 2.95 V (<0x2d0370>) across all 6 device DTS/DTB targets while preserving 1.80-2.95 V on l12 (vqmmc-supply)

- Move pm_runtime_get_sync(&pdev->dev) ahead of SDHCI_INT_STATUS and sdhci_remove_host() in sdhci_msm_remove(), and resume 7864900.sdhci power/control to 'on' before driver unbind in sxmo_sdcard.sh

- Add l11 min-voltage, pm_runtime_get_sync, and MMC_CAP2_FULL_PWR_CYCLE guards in scripts/check-rebuild.sh, update docs, rebuild vmlinuz/DTBs and all 4 --mkinitfs a1125 (ampere) images, and pin their SHA-256 checksums
This commit is contained in:
Luxferre committed 2026-11-23 17:04:25 +02:00
1 parent 5d427e39ab
commit 1a229b0587
27 files changed
+26722 -26694

No files matched your search

@@ -59,9 +59,10 @@ diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;
+ /*
+ * Enable aggressive runtime PM (power-cycle off during idle) strictly
+ * on removable SD slots. Never enable it on eMMC (mmc0 / 8-bit /
+ * no-sd / HS200/HS400) because the rootfs lives on mmc0.
+ * Enable aggressive runtime PM (power-off during idle) strictly on
+ * removable SD slots. Never enable it on eMMC (mmc0 / 8-bit / no-sd /
+ * HS200/HS400) because the rootfs lives on mmc0, and do not enable
+ * MMC_CAP2_FULL_PWR_CYCLE because sdhci_set_power_noreg rejects 0x10.
+ */
+ if (of_alias_get_id(node, "mmc") != 0 &&
+ !(msm_host->mmc->caps & MMC_CAP_8_BIT_DATA) &&
@@ -69,13 +70,29 @@ diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
+ MMC_CAP2_HS200_1_8V_SDR |
+ MMC_CAP2_HS400_1_8V))) {
+ msm_host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM;
+ msm_host->mmc->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
+ }
+
/* Set the timeout value to max possible */
host->max_timeout_count = 0xF;
@@ -2704,6 +2727,10 @@
@@ -2673,12 +2696,13 @@
struct sdhci_host *host = platform_get_drvdata(pdev);
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host);
- int dead = (readl_relaxed(host->ioaddr + SDHCI_INT_STATUS) ==
- 0xffffffff);
+ int dead;
+ pm_runtime_get_sync(&pdev->dev);
+ dead = (readl_relaxed(host->ioaddr + SDHCI_INT_STATUS) ==
+ 0xffffffff);
sdhci_remove_host(host, dead);
- pm_runtime_get_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);
pm_runtime_put_noidle(&pdev->dev);
@@ -2704,6 +2728,10 @@
dev_pm_opp_set_rate(dev, 0);
clk_bulk_disable_unprepare(ARRAY_SIZE(msm_host->bulk_clks),
msm_host->bulk_clks);