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:
1 parent
c9eb28b891
commit
601aaca25c
9 files changed
+26739
-26707
No files matched your search
@@ -1628,9 +1628,9 @@ After integrating the `a1120` 4-core SMP/cpufreq patch (`0013`), IMS/VoLTE/VoWiF
|
||||
3. **Broken QMI NAS signal hysteresis opcodes in `bananarchy-dsds.c`**:
|
||||
- Disassembly of `qmi_client_nas_config_signal_info` in `rootfs/usr/lib/libqmi-glib.so.5.12.0` confirmed that `apply_sig_hysteresis()` sent wrong message IDs `0x006F` (with 4-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + wrong TLV `0x13` (`LTE_SNR`) instead of `0x0045` (`QMI_NAS_BIND_SUBSCRIPTION`, 1-byte TLV `0x01`) and `0x0050` (`QMI_NAS_CONFIG_SIGNAL_INFO`) with TLVs `0x10` (`RSSI`), `0x18` (`RSCP`), `0x16` (`RSRP` 16-bit LE), and `0x17` (`lte_report` `rate=0`, `avg=5 s` dark / `1 s` wake).
|
||||
- **Fix**: Corrected `apply_sig_hysteresis()` to use `0x0045` + `0x0050` with all four threshold/report TLVs and added `BANANARCHY_DSDS_SIG_MOCK_SOCK` for host wire-level testing.
|
||||
4. **Static `200 mA` `l11` regulator load on microSD in DTS/DTBs**:
|
||||
- All 6 DTS files still set static `regulator-system-load = <0x30d40>;` (`200 mA`) on PM8909 `l11` (`sdhci@7864000` `vmmc-supply`), preventing LPM when a microSD card is inserted.
|
||||
- **Fix**: Removed `regulator-system-load = <0x30d40>;` from all 6 DTS files (keeping `regulator-allow-set-load;`), recompiled all 5 shipping DTBs, and guarded against regression in `scripts/check-rebuild.sh`.
|
||||
4. **Static `200 mA` `l11` regulator load on microSD in DTS/DTBs & `sdhci-msm` probe/active HPM voting**:
|
||||
- All 6 DTS files still set static `regulator-system-load = <0x30d40>;` (`200 mA`) on PM8909 `l11` (`sdhci@7864000` `vmmc-supply`), preventing LPM when a microSD card is inserted. Removing `regulator-system-load` without probe/OCR `set_load` exposed a bug in `0012`: `sdhci_msm_probe()` leaves `sdhci_msm_runtime_resume()` uncalled during card initialization, so `l11` enabled in LPM (`RPM_KEY_MA = 0`) and browned out UHS-I `CMD19` tuning (`mmc1: tuning execution failed: -5` / `-110`).
|
||||
- **Fix**: Removed `regulator-system-load = <0x30d40>;` from all 6 DTS files (keeping `regulator-allow-set-load;`), recompiled all 5 shipping DTBs, guarded against regression in `scripts/check-rebuild.sh`, and extended `patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` (`drivers/mmc/host/sdhci-msm.c`) so `sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, and `sdhci_msm_runtime_resume()` request HPM (`200 mA` `vmmc` / `20 mA` `vqmmc`) while `sdhci_msm_runtime_suspend()` drops `vmmc` to `2 mA` retention LPM and `vqmmc` to `0 mA`.
|
||||
5. **Dark-screen NetworkManager status spawner (`30-bananarchy-network-status.sh`)**:
|
||||
- Every `dhcp4-change`, `dhcp6-change`, `dns-change`, or `connectivity-change` event spawned `su user -s /bin/sh -c /usr/bin/bananarchy-network-event.sh` even when dark.
|
||||
- **Fix**: Gated noisy change events in `30-bananarchy-network-status.sh` behind `is_screen_dark()` while keeping `up`/`down`/`vpn-*` transitions unconditional.
|
||||
Reference in new issue
Block a user