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
@@ -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
|
- 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`,
|
`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`
|
`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).
|
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
|
- 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
|
`240x296` Pixmaps at `Y=24`, `PluginTheme`, `RELOAD_THEME`, idle blank/lock helpers, the 350 ms `dwm` wake guard, and
|
||||||
|
|||||||
@@ -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`**:
|
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).
|
- 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.
|
- **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**:
|
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.
|
- 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, and guarded against regression in `scripts/check-rebuild.sh`.
|
- **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`)**:
|
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.
|
- 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.
|
- **Fix**: Gated noisy change events in `30-bananarchy-network-status.sh` behind `is_screen_dark()` while keeping `up`/`down`/`vpn-*` transitions unconditional.
|
||||||
+8
-8
@@ -33,16 +33,16 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
|||||||
- **IMS Combined EPS/IMSI detection, QRTR idle sleep, and VoWiFi backoff (`src/bananarchy-daemons/ims_qrtr.h`, `bananarchy-imsd.c`, `src/dwm-plugins/bananarchy_vowifi.cpp`, `overlay/rootfs/etc/NetworkManager/dispatcher.d/40-bananarchy-ims.sh`)**: inspected TLV `0x01` `cs_attach` in `ims_qmi_nas_get_serving()` (plus PS-attach/registered checks) so standard Combined EPS/IMSI (`cs_attach == 1`) LTE+CSFB cells stay `NETWORK_4G_ONLY=0` under `volte_mode=auto` / `vowifi_mode=auto` rather than keeping VoLTE/VoWiFi active and blocking GSM Wi-Fi standby RAT parking; added `close_qrtr()` when idle, deduplicated `ims_state_write()` updates via `ims_state_equal()`, bounded child sync/check retries so `bananarchy-imsd` returns to `poll(..., -1)` instead of waking every `2,000 ms`, skipped NAS QRTR probes on Wi-Fi events while parked or inactive, skipped `40-bananarchy-ims.sh` `dhcp4-change` / `dhcp6-change` / `connectivity-change` notifications when both `VOLTE_ACTIVE` and `VOWIFI_ACTIVE` are `0`, guarded `openCtlSocket()` rebinds in `bananarchy-vowifi`, and replaced its `1.5 s` / `10 s` retry storm with capped exponential backoff (`5 s` to `300 s`).
|
- **IMS Combined EPS/IMSI detection, QRTR idle sleep, and VoWiFi backoff (`src/bananarchy-daemons/ims_qrtr.h`, `bananarchy-imsd.c`, `src/dwm-plugins/bananarchy_vowifi.cpp`, `overlay/rootfs/etc/NetworkManager/dispatcher.d/40-bananarchy-ims.sh`)**: inspected TLV `0x01` `cs_attach` in `ims_qmi_nas_get_serving()` (plus PS-attach/registered checks) so standard Combined EPS/IMSI (`cs_attach == 1`) LTE+CSFB cells stay `NETWORK_4G_ONLY=0` under `volte_mode=auto` / `vowifi_mode=auto` rather than keeping VoLTE/VoWiFi active and blocking GSM Wi-Fi standby RAT parking; added `close_qrtr()` when idle, deduplicated `ims_state_write()` updates via `ims_state_equal()`, bounded child sync/check retries so `bananarchy-imsd` returns to `poll(..., -1)` instead of waking every `2,000 ms`, skipped NAS QRTR probes on Wi-Fi events while parked or inactive, skipped `40-bananarchy-ims.sh` `dhcp4-change` / `dhcp6-change` / `connectivity-change` notifications when both `VOLTE_ACTIVE` and `VOWIFI_ACTIVE` are `0`, guarded `openCtlSocket()` rebinds in `bananarchy-vowifi`, and replaced its `1.5 s` / `10 s` retry storm with capped exponential backoff (`5 s` to `300 s`).
|
||||||
- **Display/lockscreen/cover power-policy sync & idempotency (`overlay/rootfs/usr/bin/bananarchy-display-power-sync`, `bananarchy-power-policy.sh`, `src/dwm-plugins/locker_plugin.cpp`, `30-bananarchy-network-status.sh`)**: synced `CPU_GOV_PATH` (`powersave` when dark or cover-lit, `schedutil` on interactive wake) and `sync_standby_policy()` across both flip and non-flip branches of `bananarchy-display-power-sync`, wired `blankScreenBacklight()` / `wakeScreenBacklight()` in `locker.so` to `/usr/bin/bananarchy-power-policy.sh screenoff|screenon`, made `screenoff()`, `screenon()`, and `arm_rat_park_timer()` idempotent via `$RUNDIR/standby.mode` and `$RUNDIR/rat_timer.pid` across dark/cover-lit/dark cycles, and suppressed `30-bananarchy-network-status.sh` `su user` spawns for noisy `dhcp4-change` / `dhcp6-change` / `dns-change` / `connectivity-change` events while dark.
|
- **Display/lockscreen/cover power-policy sync & idempotency (`overlay/rootfs/usr/bin/bananarchy-display-power-sync`, `bananarchy-power-policy.sh`, `src/dwm-plugins/locker_plugin.cpp`, `30-bananarchy-network-status.sh`)**: synced `CPU_GOV_PATH` (`powersave` when dark or cover-lit, `schedutil` on interactive wake) and `sync_standby_policy()` across both flip and non-flip branches of `bananarchy-display-power-sync`, wired `blankScreenBacklight()` / `wakeScreenBacklight()` in `locker.so` to `/usr/bin/bananarchy-power-policy.sh screenoff|screenon`, made `screenoff()`, `screenon()`, and `arm_rat_park_timer()` idempotent via `$RUNDIR/standby.mode` and `$RUNDIR/rat_timer.pid` across dark/cover-lit/dark cycles, and suppressed `30-bananarchy-network-status.sh` `su user` spawns for noisy `dhcp4-change` / `dhcp6-change` / `dns-change` / `connectivity-change` events while dark.
|
||||||
- **QMI NAS signal hysteresis wire-protocol fix (`src/bananarchy-daemons/bananarchy-dsds.c`)**: corrected `apply_sig_hysteresis()` from wrong opcodes `0x006F` (`4`-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + TLV `0x13` to `QMI_NAS_BIND_SUBSCRIPTION` (`0x0045`, `1`-byte TLV `0x01`) and `QMI_NAS_CONFIG_SIGNAL_INFO` (`0x0050`) with `RSSI` (`0x10`), WCDMA `RSCP` (`0x18`), LTE `RSRP` (`0x16`, 16-bit LE), and `lte_report` (`0x17`, `rate=0`, `avg=5 s` dark / `1 s` wake) verified against `libqmi-glib.so.5.12.0`, suppressing minor standby RF fluctuations from waking APSS over QRTR.
|
- **QMI NAS signal hysteresis wire-protocol fix (`src/bananarchy-daemons/bananarchy-dsds.c`)**: corrected `apply_sig_hysteresis()` from wrong opcodes `0x006F` (`4`-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + TLV `0x13` to `QMI_NAS_BIND_SUBSCRIPTION` (`0x0045`, `1`-byte TLV `0x01`) and `QMI_NAS_CONFIG_SIGNAL_INFO` (`0x0050`) with `RSSI` (`0x10`), WCDMA `RSCP` (`0x18`), LTE `RSRP` (`0x16`, 16-bit LE), and `lte_report` (`0x17`, `rate=0`, `avg=5 s` dark / `1 s` wake) verified against `libqmi-glib.so.5.12.0`, suppressing minor standby RF fluctuations from waking APSS over QRTR.
|
||||||
- **microSD PM8909 `l11` static `200 mA` load removal (`devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/dtbs/*.dtb`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files and recompiled all 5 shipping DTBs so `sdhci@7864000` honors pure `regulator-allow-set-load;` Low-Power Mode when a microSD card is inserted.
|
- **microSD PM8909 `l11` static `200 mA` load removal & `sdhci-msm` probe/active HPM + standby LPM `set_load` (`patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch`, `devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files while extending `sdhci-msm.c` (`sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, `sdhci_msm_runtime_resume()`, `sdhci_msm_runtime_suspend()`) and rebuilding `vmlinuz`/modules/DTBs so microSD probe and UHS-I tuning receive full `200 mA` / `20 mA` HPM without brownout (`-5`/`-110`) and idle runtime suspend drops `vmmc`/`vqmmc` to `2 mA`/`0 mA` PM8909 LPM.
|
||||||
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
|
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
|
||||||
- **Rebuilt local image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
|
- **Rebuilt local image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
|
||||||
- `images/bananarchy-nokia-argon.img`: `7ed88928baf8f8926e7213919e304991cd0a30e0166c0b91da610396f606cf37`
|
- `images/bananarchy-nokia-argon.img`: `beb3c4f9d4bbf2356e6d106fa10adec105f34d3f696bfce8109c85869bab5bfd`
|
||||||
- `images/bananarchy-nokia-beatles.img`: `616ef7ceaa3e49b73ff90f14c8d30e658f3e35349549414a78c1f6a15e6f75c2`
|
- `images/bananarchy-nokia-beatles.img`: `a240e3d243c9bef0fc1c014f113b0d14d7295815ff3681e7887d4650ebd7f18a`
|
||||||
- `images/boot-bananarchy-nokia-beatles.img`: `a51cf223d3b6231e1a00947f5a084939c54c76d10051a43d37dfd2652d88f99f`
|
- `images/boot-bananarchy-nokia-beatles.img`: `c92f99bc07348f9cd63f083440116fdd7fc219c5cbe20526d6eb3cd134cbd7ca`
|
||||||
- `images/bananarchy-nokia-coconut.img`: `598482a219e235cc323821d8dda5c62d380ec6773b739fdf1c12cf8ad7c6648e`
|
- `images/bananarchy-nokia-coconut.img`: `e58abff5555b13f2896962166aa2469772ea00f2bf396d032f3637072262a055`
|
||||||
- `images/boot-bananarchy-nokia-coconut.img`: `f6ba9567d9f57a5503751c023a606eae71a8f68047c03380f68ab488b8ab51b5`
|
- `images/boot-bananarchy-nokia-coconut.img`: `e96ea67004bc37f4ad912c5cbcc00fc4ad6da895e31bb5201395910c067174e8`
|
||||||
- `images/bananarchy-nokia-sparkler.img`: `d86779df5f38d0d5cd516b9123f17dfbd7ba8874435517146e281382e5998f9a`
|
- `images/bananarchy-nokia-sparkler.img`: `a96454fa5baa41e9c5c510636c2a3ac070d01914941b786f05c2e653f9aa8c30`
|
||||||
- `images/boot-bananarchy-nokia-sparkler.img`: `1e6a1659c4ae9a95c29c96a41edf9343535229d583dcec3d2063667c98745fbc`
|
- `images/boot-bananarchy-nokia-sparkler.img`: `f8fb959bb945b04a3cf9081aed191f055c3650cad8c6ec6509bd0a8694aaf529`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+13337
-13337
File diff suppressed because it is too large.
Load diff
Binary file not shown.
@@ -15,29 +15,57 @@ index f5d66cc5d..feaed79f1 100644
|
|||||||
|
|
||||||
static const struct drm_simple_display_pipe_funcs panel_mipi_dbi_pipe_funcs = {
|
static const struct drm_simple_display_pipe_funcs panel_mipi_dbi_pipe_funcs = {
|
||||||
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
|
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
|
||||||
index e113b99a3..4dd967439 100644
|
|
||||||
--- a/drivers/mmc/host/sdhci-msm.c
|
--- a/drivers/mmc/host/sdhci-msm.c
|
||||||
+++ b/drivers/mmc/host/sdhci-msm.c
|
+++ b/drivers/mmc/host/sdhci-msm.c
|
||||||
@@ -10,6 +10,7 @@
|
@@ -1408,6 +1408,7 @@
|
||||||
#include <linux/mmc/mmc.h>
|
if (IS_ERR(mmc->supply.vmmc))
|
||||||
#include <linux/pm_runtime.h>
|
return 0;
|
||||||
#include <linux/pm_opp.h>
|
|
||||||
+#include <linux/regulator/consumer.h>
|
+ regulator_set_load(mmc->supply.vmmc, mmc->ios.vdd ? 200000 : 0);
|
||||||
#include <linux/slab.h>
|
return mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, mmc->ios.vdd);
|
||||||
#include <linux/iopoll.h>
|
}
|
||||||
#include <linux/regulator/consumer.h>
|
|
||||||
@@ -2704,6 +2705,10 @@ static __maybe_unused int sdhci_msm_runtime_suspend(struct device *dev)
|
@@ -1421,6 +1422,7 @@
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (level) {
|
||||||
|
+ regulator_set_load(mmc->supply.vqmmc, 20000);
|
||||||
|
/* Set the IO voltage regulator to default voltage level */
|
||||||
|
if (msm_host->caps_0 & CORE_3_0V_SUPPORT)
|
||||||
|
ios.signal_voltage = MMC_SIGNAL_VOLTAGE_330;
|
||||||
|
@@ -1438,6 +1440,8 @@
|
||||||
|
ret = regulator_enable(mmc->supply.vqmmc);
|
||||||
|
} else {
|
||||||
|
ret = regulator_disable(mmc->supply.vqmmc);
|
||||||
|
+ if (!ret)
|
||||||
|
+ regulator_set_load(mmc->supply.vqmmc, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ret)
|
||||||
|
@@ -2188,6 +2192,11 @@
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
+ if (!IS_ERR(msm_host->mmc->supply.vmmc))
|
||||||
|
+ regulator_set_load(msm_host->mmc->supply.vmmc, 200000);
|
||||||
|
+ if (!IS_ERR(msm_host->mmc->supply.vqmmc))
|
||||||
|
+ regulator_set_load(msm_host->mmc->supply.vqmmc, 20000);
|
||||||
|
+
|
||||||
|
sdhci_msm_set_regulator_caps(msm_host);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
@@ -2704,6 +2713,10 @@
|
||||||
dev_pm_opp_set_rate(dev, 0);
|
dev_pm_opp_set_rate(dev, 0);
|
||||||
clk_bulk_disable_unprepare(ARRAY_SIZE(msm_host->bulk_clks),
|
clk_bulk_disable_unprepare(ARRAY_SIZE(msm_host->bulk_clks),
|
||||||
msm_host->bulk_clks);
|
msm_host->bulk_clks);
|
||||||
+ if (!IS_ERR(host->mmc->supply.vmmc))
|
+ if (!IS_ERR(host->mmc->supply.vmmc))
|
||||||
+ regulator_set_load(host->mmc->supply.vmmc, 0);
|
+ regulator_set_load(host->mmc->supply.vmmc, 2000);
|
||||||
+ if (!IS_ERR(host->mmc->supply.vqmmc))
|
+ if (!IS_ERR(host->mmc->supply.vqmmc))
|
||||||
+ regulator_set_load(host->mmc->supply.vqmmc, 0);
|
+ regulator_set_load(host->mmc->supply.vqmmc, 0);
|
||||||
|
|
||||||
return sdhci_msm_ice_suspend(msm_host);
|
return sdhci_msm_ice_suspend(msm_host);
|
||||||
}
|
}
|
||||||
@@ -2716,6 +2721,11 @@ static __maybe_unused int sdhci_msm_runtime_resume(struct device *dev)
|
@@ -2716,6 +2729,11 @@
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|||||||
+13337
-13337
File diff suppressed because it is too large.
Load diff
Binary file not shown.
@@ -564,15 +564,15 @@ fi
|
|||||||
|
|
||||||
echo "[check] Known-good flashable image set..."
|
echo "[check] Known-good flashable image set..."
|
||||||
for pair in \
|
for pair in \
|
||||||
"7ed88928baf8f8926e7213919e304991cd0a30e0166c0b91da610396f606cf37 images/bananarchy-nokia-argon.img" \
|
"beb3c4f9d4bbf2356e6d106fa10adec105f34d3f696bfce8109c85869bab5bfd images/bananarchy-nokia-argon.img" \
|
||||||
"616ef7ceaa3e49b73ff90f14c8d30e658f3e35349549414a78c1f6a15e6f75c2 images/bananarchy-nokia-beatles.img" \
|
"a240e3d243c9bef0fc1c014f113b0d14d7295815ff3681e7887d4650ebd7f18a images/bananarchy-nokia-beatles.img" \
|
||||||
"a51cf223d3b6231e1a00947f5a084939c54c76d10051a43d37dfd2652d88f99f images/boot-bananarchy-nokia-beatles.img" \
|
"c92f99bc07348f9cd63f083440116fdd7fc219c5cbe20526d6eb3cd134cbd7ca images/boot-bananarchy-nokia-beatles.img" \
|
||||||
"f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 images/boot-lk2nd-nokia-beatles-display.img" \
|
"f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 images/boot-lk2nd-nokia-beatles-display.img" \
|
||||||
"598482a219e235cc323821d8dda5c62d380ec6773b739fdf1c12cf8ad7c6648e images/bananarchy-nokia-coconut.img" \
|
"e58abff5555b13f2896962166aa2469772ea00f2bf396d032f3637072262a055 images/bananarchy-nokia-coconut.img" \
|
||||||
"f6ba9567d9f57a5503751c023a606eae71a8f68047c03380f68ab488b8ab51b5 images/boot-bananarchy-nokia-coconut.img" \
|
"e96ea67004bc37f4ad912c5cbcc00fc4ad6da895e31bb5201395910c067174e8 images/boot-bananarchy-nokia-coconut.img" \
|
||||||
"9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 images/boot-lk2nd-nokia-coconut-display.img" \
|
"9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 images/boot-lk2nd-nokia-coconut-display.img" \
|
||||||
"d86779df5f38d0d5cd516b9123f17dfbd7ba8874435517146e281382e5998f9a images/bananarchy-nokia-sparkler.img" \
|
"a96454fa5baa41e9c5c510636c2a3ac070d01914941b786f05c2e653f9aa8c30 images/bananarchy-nokia-sparkler.img" \
|
||||||
"1e6a1659c4ae9a95c29c96a41edf9343535229d583dcec3d2063667c98745fbc images/boot-bananarchy-nokia-sparkler.img" \
|
"f8fb959bb945b04a3cf9081aed191f055c3650cad8c6ec6509bd0a8694aaf529 images/boot-bananarchy-nokia-sparkler.img" \
|
||||||
"120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 images/boot-lk2nd-nokia-sparkler-display.img"; do
|
"120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 images/boot-lk2nd-nokia-sparkler-display.img"; do
|
||||||
set -- $pair
|
set -- $pair
|
||||||
want=$1
|
want=$1
|
||||||
@@ -2448,8 +2448,12 @@ fi
|
|||||||
|
|
||||||
echo "[check] 72-hour standby battery optimizations (patch 0012, codec analog, DTS set-load, policy)..."
|
echo "[check] 72-hour standby battery optimizations (patch 0012, codec analog, DTS set-load, policy)..."
|
||||||
if [ ! -f "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" ] || \
|
if [ ! -f "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" ] || \
|
||||||
! grep -qF '0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch' "$BASE_DIR/scripts/build-kernel-audio.sh"; then
|
! grep -qF '0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch' "$BASE_DIR/scripts/build-kernel-audio.sh" || \
|
||||||
fail "kernel patch 0012 or its build-kernel-audio.sh wiring is missing"
|
! grep -qF 'mmc->ios.vdd ? 200000 : 0' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
|
! grep -qF 'regulator_set_load(msm_host->mmc->supply.vmmc, 200000)' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
|
! grep -qF 'regulator_set_load(mmc->supply.vqmmc, 20000)' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||||
|
! grep -qF 'regulator_set_load(host->mmc->supply.vmmc, 2000)' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch"; then
|
||||||
|
fail "kernel patch 0012, sdhci-msm HPM/LPM regulator_set_load hunks, or build-kernel-audio.sh wiring is missing"
|
||||||
fi
|
fi
|
||||||
for ko in "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/codecs/snd-soc-msm8916-analog.ko.zst" \
|
for ko in "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/codecs/snd-soc-msm8916-analog.ko.zst" \
|
||||||
"$BASE_DIR/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/sound/soc/codecs/snd-soc-msm8916-analog.ko.zst"; do
|
"$BASE_DIR/overlay/rootfs/lib/modules/6.12.1-msm8916/kernel/sound/soc/codecs/snd-soc-msm8916-analog.ko.zst"; do
|
||||||
|
|||||||
Reference in new issue
Block a user