Re: [PATCH v3 1/5] power: supply: max17040: Add IRQ handler for low SOC alert

2019-05-29 Thread Krzysztof Kozlowski
On Mon, 27 May 2019 at 04:45, Matheus Castello wrote: > > 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 r

[PATCH v3 1/5] power: supply: max17040: Add IRQ handler for low SOC alert

2019-05-26 Thread Matheus Castello
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 us