OSDN Git Service

power: supply: bq24190_charger: Handle fault before status on interrupt
authorLiam Breck <liam@networkimprov.net>
Wed, 18 Jan 2017 17:26:54 +0000 (09:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 12:00:15 +0000 (14:00 +0200)
commite7b34f4a74f607e6ad67763ef47c26b762b8dd34
treed10643987426f95fcdc7683acaf866f695c82dcd
parent7f2b4ad9c07af5291ff4b18548160b2816cda849
power: supply: bq24190_charger: Handle fault before status on interrupt

commit ba52e75718784fda1b683ee0bfded72a0b83b047 upstream.

Reading both fault and status registers and logging any fault should
take priority over handling status register update.

Fix by moving the status handling to later in interrupt routine.

Fixes: d7bf353fd0aa3 ("bq24190_charger: Add support for TI BQ24190 Battery Charger")
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Acked-by: Mark Greer <mgreer@animalcreek.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/bq24190_charger.c