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
@@ -564,15 +564,15 @@ fi
|
||||
|
||||
echo "[check] Known-good flashable image set..."
|
||||
for pair in \
|
||||
"a0a02a8502736fae9c25de54cb8043231b2fd3ac488e123676cc8c3a35577ea1 images/bananarchy-nokia-argon.img" \
|
||||
"9703ab732bac535ad83862a89c71931a4c16704b685f1bca45c23d7ac066c341 images/bananarchy-nokia-beatles.img" \
|
||||
"7eab3dcf44ba01f044e9b6dba3f786aebe80a3380884966e6ecd5dafc455c16a images/boot-bananarchy-nokia-beatles.img" \
|
||||
"2ba4620680a981a87fa8adf7a2fb6ab98d932c73f9de9be1c69981edc096d2a8 images/bananarchy-nokia-argon.img" \
|
||||
"23d1fdd6598bf0c5497b1e41a16888d966ad4ac3f4eee3aa04623b339c896c59 images/bananarchy-nokia-beatles.img" \
|
||||
"0459151f37c746963dc734539a4284a0524b1b8ad777cd8690a87f928d2cec58 images/boot-bananarchy-nokia-beatles.img" \
|
||||
"f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 images/boot-lk2nd-nokia-beatles-display.img" \
|
||||
"5158dc6e545c975387ba29c44593afe2758a4cd926e0c43df90e8b79b72a6b37 images/bananarchy-nokia-coconut.img" \
|
||||
"d79b51d86344441f170b1ddf205b721b54ce8c995a66bb611670065911768347 images/boot-bananarchy-nokia-coconut.img" \
|
||||
"1f47b0f6b96c1637e1febaa6b5d150c2dd661ba9d200286315cb0400ca61a6a0 images/bananarchy-nokia-coconut.img" \
|
||||
"81695b3242403ebbd8631957a0ca67128b9791199e8121f58ed5e8f32ea2cc77 images/boot-bananarchy-nokia-coconut.img" \
|
||||
"9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 images/boot-lk2nd-nokia-coconut-display.img" \
|
||||
"90ff40226f344d280b7a9cca1d23fb587cc987255c375b57969b3fd415c786b4 images/bananarchy-nokia-sparkler.img" \
|
||||
"4e1ddbfd5acc8335cb3e3e50b3fef46b9c6fe93afdaa9c2c0826500e63b60adf images/boot-bananarchy-nokia-sparkler.img" \
|
||||
"7e6b7bdc1ac96f748c46c6fde0f7debe2ae5562d0c2feb1f5ddfc274fd22717e images/bananarchy-nokia-sparkler.img" \
|
||||
"5fde23c229bcfcec276bfa064308a37736dc9f34bcb80c6f5b6c16400417adfa images/boot-bananarchy-nokia-sparkler.img" \
|
||||
"120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 images/boot-lk2nd-nokia-sparkler-display.img"; do
|
||||
set -- $pair
|
||||
want=$1
|
||||
@@ -2469,6 +2469,8 @@ if [ ! -f "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.
|
||||
! 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" || \
|
||||
! grep -qF 'MMC_CAP_AGGRESSIVE_PM' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||
grep -qF 'caps2 |= MMC_CAP2_FULL_PWR_CYCLE' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||
! grep -qF 'pm_runtime_get_sync(&pdev->dev);' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||
! grep -qF 'gcc_mss_q6_bimc_axi_clk' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||
! grep -qF 'qcom_q6v5_mss.c' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch" || \
|
||||
! grep -qF 'opp-99999975' "$BASE_DIR/patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch"; then
|
||||
@@ -2544,6 +2546,10 @@ for dts in \
|
||||
if [ "$(grep -c 'non-removable;' "$dts" 2>/dev/null || echo 0)" -lt 2 ]; then
|
||||
fail "${dts#"$BASE_DIR/"} is missing non-removable; on sdhci@7864000"
|
||||
fi
|
||||
if ! awk '/l11 \{/,/\};/ { if ($0 ~ /regulator-min-microvolt = <0x2d0370>;/) ok=1; if ($0 ~ /0x1b7740/) bad=1 } END { exit((ok && !bad) ? 0 : 1) }' \
|
||||
"$dts"; then
|
||||
fail "${dts#"$BASE_DIR/"} l11 must set regulator-min-microvolt = <0x2d0370> (2.95 V)"
|
||||
fi
|
||||
done
|
||||
if command -v dtc >/dev/null 2>&1; then
|
||||
for dtb in "$BASE_DIR"/prebuilt/kernel-6.12.1-msm8916/dtbs/*.dtb; do
|
||||
@@ -2558,6 +2564,8 @@ if command -v dtc >/dev/null 2>&1; then
|
||||
fail "${dtb#"$BASE_DIR/"} still contains static regulator-system-load"
|
||||
elif [ "$(printf "%s\n" "$dec_dts" | grep -c 'non-removable;' || echo 0)" -lt 2 ]; then
|
||||
fail "${dtb#"$BASE_DIR/"} is missing non-removable; on sdhci@7864000"
|
||||
elif ! printf "%s\n" "$dec_dts" | awk '/l11 \{/,/\};/ { if ($0 ~ /regulator-min-microvolt = <0x2d0370>;/) ok=1; if ($0 ~ /0x1b7740/) bad=1 } END { exit((ok && !bad) ? 0 : 1) }'; then
|
||||
fail "${dtb#"$BASE_DIR/"} l11 must set regulator-min-microvolt = <0x2d0370> (2.95 V)"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user