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:
1 parent
5d427e39ab
commit
1a229b0587
27 files changed
+26722
-26694
No files matched your search
@@ -1644,7 +1644,7 @@ Live telemetry collected from a flashed `a1120` `nokia-beatles` unit running DSD
|
||||
- **Fix**: Removed `bluetooth` from `enable_service default` in `scripts/bootstrap-rootfs-container.sh` and added `rm -f "$TARGET_ROOTFS/etc/runlevels/default/bluetooth"` in `scripts/apply-bananarchy-overlay.sh`; persisted explicit user intent in `/home/user/.config/sxmo/bt_enabled` from `sxmo_bluetoothtoggle.sh` (`on()`/`off()`); enforced `rfkill block bluetooth` and service stop in `/etc/local.d/10-power-save.start` when `bt_enabled` is unset; and switched all three `sxmo_hook_start.sh` copies to check `bt_enabled` instead of raw `rfkill` status.
|
||||
2. **microSD (`mmc1`) `SDR104` `vmmc`/`vqmmc` kept active 24/7 (`~6-12 mA`)**:
|
||||
- `sdhci@7864000` (`mmc1`) lacked `MMC_CAP_AGGRESSIVE_PM` (`caps = 0x405f030f`), causing `mmc_sd_runtime_suspend()` to return `0` without powering off the card. While idle, PM8909 `L11` (`2.9 V`, `0x4a46=0x80`) and `L12` (`1.8 V`, `0x4b46=0x80`, `0x4b45=0x80` NPM) stayed active continuously with an `SDR104` card in `tran` state.
|
||||
- **Fix**: Extended `patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` (`drivers/mmc/host/sdhci-msm.c`) to set `MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE` exclusively on non-`mmc0`, non-8-bit, SD-capable hosts (`of_alias_get_id(node, "mmc") != 0 && !(caps & MMC_CAP_8_BIT_DATA) && !(caps2 & (MMC_CAP2_NO_SD | MMC_CAP2_HS200_1_8V_SDR | MMC_CAP2_HS400_1_8V))`), leaving rootfs eMMC `mmc0` (`sdhci@7824000`, which omits `no-sd;` in DTS) strictly excluded while powering off both `L11` and `L12` during removable microSD idle.
|
||||
- **Fix**: Extended `patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` (`drivers/mmc/host/sdhci-msm.c`) to set `MMC_CAP_AGGRESSIVE_PM` exclusively on non-`mmc0`, non-8-bit, SD-capable hosts (`of_alias_get_id(node, "mmc") != 0 && !(caps & MMC_CAP_8_BIT_DATA) && !(caps2 & (MMC_CAP2_NO_SD | MMC_CAP2_HS200_1_8V_SDR | MMC_CAP2_HS400_1_8V))`), leaving rootfs eMMC `mmc0` (`sdhci@7824000`, which omits `no-sd;` in DTS) strictly excluded while powering off both `L11` and `L12` during removable microSD idle; kept `MMC_CAP2_FULL_PWR_CYCLE` off and raised PM8909 `l11` `regulator-min-microvolt` to `<0x2d0370>` (`2.95 V`) across all 6 DTS/DTBs (avoiding `Invalid vdd 0x10` in `sdhci_set_power_noreg()`); moved `pm_runtime_get_sync()` ahead of `SDHCI_INT_STATUS` / `sdhci_remove_host()` in `sdhci_msm_remove()`; and resumed `7864900.sdhci` before `unbind` in `sxmo_sdcard.sh`.
|
||||
3. **Modem `qcom_q6v5_mss` pinning `BIMC_PLL` and `gcc_boot_rom_ahb_clk` on APSS (`~3-6 mA`)**:
|
||||
- `4080000.remoteproc` (`msm8909_mss` / `msm8916_mss`) kept `"mem"` (`gcc_boot_rom_ahb_clk`) in `.active_clk_names` indefinitely and enabled `gcc_mss_q6_bimc_axi_clk`, whose clock parent `&bimc_ddr_clk_src -> bimc_pll -> bimc_pll_early` held APSS `GCC_APCS_GPLL_ENA_VOTE` (`0x45000` `BIT(2)`) asserted 24/7.
|
||||
- **Fix**: Updated `0012` across `drivers/remoteproc/qcom_q6v5_mss.c` (moving `"mem"` from `.active_clk_names` into `.proxy_clk_names` released at `qcom_msa_handover()`) and `drivers/clk/qcom/gcc-msm8909.c` (re-parenting `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, adding `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src` and `system_noc_bfdcd_clk_src`, and clearing the bootloader APSS `BIT(2)` vote in `gcc_msm8909_probe()`).
|
||||
|
||||
Reference in new issue
Block a user