Skip to content
Snippets Groups Projects

linux-postmarketos-qcom-sdm670: backport the qcom-spmi-adc-tm5 scaling fix

Merged Richard Acayan requested to merge rdacayan/pmaports:sargo into master
All threads resolved!

The thermal monitor measures an NTC thermistor which decreases voltage when the temperature increases.

When fixing the scaling for the first time, a wrong division by 20 was removed. The voltage code was still high by a factor of 28900/16384, enough that the thermal monitor constantly signalled/interrupted at a low voltage/high temperature trip point. The thermal monitor still reports the correct temperature so the kernel keeps the wrong trip points and lets the thermal monitor keep interrupting 1000 times/sec. Fix the other scaling amount so the thermal monitor sends interrupts at the right temperature (with some imprecision).


Reported by @foxlet:matrix.org via Matrix. Also unfortunately marks the second regression this release.

anyways, tried the new 6.13.3 kernel! yay faster charging on the Pixel 3a!

unfortunately though battery life kinda dropped alongside with it

system's running at 2.2-2.8w rather than the 1.8-2w that it was before (playing a video in mpv on a loop)

Edited by Richard Acayan

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading