Ubuntu-focal-kernel/drivers
Tony Lindgren 4a9f38bb43 power: supply: cpcap-battery: Check voltage before orderly_poweroff
BugLink: https://bugs.launchpad.net/bugs/1858428

[ Upstream commit 639c1524da ]

We can get the low voltage interrupt trigger sometimes way too early,
maybe because of CPU load spikes. This causes orderly_poweroff() be
called too easily.

Let's check the voltage before orderly_poweroff in case it was not
yet a permanent condition. We will be getting more interrupts anyways
if the condition persists.

Let's also show the measured voltages for low battery and battery
empty warnings since we have them.

Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
2020-01-06 08:16:01 -06:00
..
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block
bluetooth Bluetooth: btusb: avoid unused function warning 2020-01-06 08:16:00 -06:00
bus
cdrom
char
clk
clocksource
connector
counter
cpufreq
cpuidle
crypto
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon extcon: sm5502: Reset registers during initialization 2020-01-06 08:15:58 -06:00
firewire
firmware
fpga
fsi
gnss
gpio
gpu drm/amdgpu: fix amdgpu trace event print string format error 2020-01-06 08:16:01 -06:00
greybus
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
ide
idle
iio iio: adc: max1027: Reset the device at probe time 2020-01-06 08:15:59 -06:00
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
lightnvm
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
mtd
mux
net rtw88: coex: Set 4 slot mode for A2DP 2020-01-06 08:15:58 -06:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power power: supply: cpcap-battery: Check voltage before orderly_poweroff 2020-01-06 08:16:01 -06:00
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi
sfi
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging staging: iio: ad9834: add a check for devm_clk_get 2020-01-06 08:16:01 -06:00
target
tc
tee
thermal
thunderbolt
tty
uio
usb usb: usbfs: Suppress problematic bind and unbind uevents. 2020-01-06 08:15:59 -06:00
vfio
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile