summaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorVic Wei <vwei@codeaurora.org>2018-01-22 08:21:03 -0800
committerJim Hou <hou@codeaurora.org>2018-04-28 00:47:42 +0800
commit0bca9d95c7ccadf36e62449f045a53109d17fa08 (patch)
tree93e7f7b057dc5a14a1af061281bd3bde51cbb607 /include/linux/overflow.h
parent502257f3e6a9fbc83bdf42d98aef495c8dcecf11 (diff)
battery: handle early/late suspend/resume of i2c bus
The i2c bus could suspend right after the parallel charger's suspend i.e. no i2c access available during suspend_noirq stages. Similarly on the resume path, there is no i2c access until resume() callback. However the PMI can handle interrupts right before its own suspend_irq and right after its own resume_irq. Those interrupts could invoke transactions for parallel charger but that is either too late or very early for any i2c transactions. To fix this, hold a wakelock once parallel is enabled and release the wakelock 5 seconds after parallel is disabled. Change-Id: Id517b5afca090d7f3ccb31e640512bdb9f902377 Signed-off-by: Harry Yang <harryy@codeaurora.org> Signed-off-by: Vic Wei <vwei@codeaurora.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions