summaryrefslogtreecommitdiffstats
path: root/drivers/ssb
diff options
context:
space:
mode:
authorMatheus Castello <matheus@castello.eng.br>2019-12-05 16:44:06 +0100
committerSebastian Reichel <sre@kernel.org>2019-12-19 01:51:52 +0100
commit2e17ed94de68953b17ed91b64f4bd176cdf38ad4 (patch)
tree98157e9536d50bd6f05fd6c85dcb51113bc4ffb2 /drivers/ssb
parentdt-bindings: power: supply: max17040: Add DT bindings for max17040 fuel gauge (diff)
downloadlinux-2e17ed94de68953b17ed91b64f4bd176cdf38ad4.tar.xz
linux-2e17ed94de68953b17ed91b64f4bd176cdf38ad4.zip
power: supply: max17040: Add IRQ handler for low SOC alert
According datasheet max17040 has a pin for alert host for low SOC. This pin can be used as external interrupt, so we need to check for interrupts assigned for device and handle it. In handler we are checking and storing fuel gauge registers values and send an uevent to notificate user space, so user space can decide save work or turn off since the alert demonstrate that the battery may no have the power to keep the system turned on for much longer. Signed-off-by: Matheus Castello <matheus@castello.eng.br> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/ssb')
0 files changed, 0 insertions, 0 deletions