summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorChris Morgan <macromorgan@hotmail.com>2024-09-26 17:43:46 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-10-17 00:40:02 +0300
commit1e5335d00707220b46c28ab09cd09a1837b84978 (patch)
treea74909cdf82ca7ed6f0d234bce7ad3abd3f5bf85 /tools/perf/scripts/python/intel-pt-events.py
parentbded860c3110a45fe091f67b2fe6f3b2bb096165 (diff)
downloadlinux-1e5335d00707220b46c28ab09cd09a1837b84978.tar.xz
power: supply: rk817: Update battery capacity calibration
The battery capacity calibration function continues to be a source of bugs for end users, especially when coming out of suspend. This occurs when the device has incorrect readings for voltage, and causes the current code to set fully charged capacity incorrectly. Add checks to ensure we don't attempt a capacity calibration when we have invalid voltage values or no battery present, and remove the code that attempts to automatically set the fully charged capacity in lieu of making the value writeable. This way userspace is able to adjust the fully charged capacity for a degraded battery. Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Link: https://lore.kernel.org/r/20240926144346.94630-3-macroalpha82@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions