Fix mmc1 microSD initialization with sdhci-msm HPM/LPM regulator_set_load

- Update drivers/mmc/host/sdhci-msm.c in patch 0012 so
  sdhci_msm_register_vreg(), sdhci_msm_set_vmmc(), msm_toggle_vqmmc(),
  and sdhci_msm_runtime_resume() vote 200 mA vmmc / 20 mA vqmmc HPM
  loads during probe, card init, and UHS-I tuning while
  sdhci_msm_runtime_suspend() drops vmmc/vqmmc to 2 mA / 0 mA LPM
- Rebuild vmlinuz/modules/DTBs via scripts/build-kernel-audio.sh and
  sync prebuilt/ and overlay/rootfs/ artifacts
- Guard sdhci-msm regulator_set_load hunks in scripts/check-rebuild.sh,
  document the fix in BATTERY-OPTIMIZATION-ANALYSIS.md, AGENTS.md, and
  Unreleased CHANGELOG.md notes, and update rebuilt --mkinitfs image
  SHA-256 checksums across all four targets (verified live on Nokia 2720)
This commit is contained in:
Luxferre committed 2026-11-21 12:48:05 +02:00
1 parent c9eb28b891
commit 601aaca25c
9 files changed
+26739 -26707

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, `
- Keep standby battery invariants from `0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` and
`bananarchy-power-policy.conf`: `CPU_RPM_SLEEP=0`, `CPU_L2_SLEEP=0`, `MODEM_DRX_MODE=0`, `WIFI_LISTEN_INTERVAL=8`,
`WIFI_STANDBY_RAT=gsm`, `msm8916-wcd-analog` `s2` gating, `pm8916_bms_vm` `screen_off` S3 OCV mode, `sdhci-msm`
`vmmc`/`vqmmc` `set_load` (`regulator-allow-set-load;` on `l8`/`l11`/`l12` across DTS/DTBs with no static `regulator-system-load` on `l11`), and `msm8905-cam.c` RPM `l6`/`l17`
`vmmc`/`vqmmc` `set_load` (`200 mA` / `20 mA` HPM in `sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, and `sdhci_msm_runtime_resume()`; `2 mA` / `0 mA` LPM in `sdhci_msm_runtime_suspend()`, paired with `regulator-allow-set-load;` on `l8`/`l11`/`l12` across DTS/DTBs and no static `regulator-system-load` on `l11`), and `msm8905-cam.c` RPM `l6`/`l17`
regulator consumer voting (`regulator_get_optional`, never raw APSS SPMI writes on RPM LDOs).
- Keep the zero-lag plugin model: preloaded resident daemons guarded by lock/FIFO, `poll()` at 0% CPU, offscreen
`240x296` Pixmaps at `Y=24`, `PluginTheme`, `RELOAD_THEME`, idle blank/lock helpers, the 350 ms `dwm` wake guard, and