]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: Fix for DA9055 driver initialization
authorAnkur Raina <Ankur.Raina@kpitcummins.com>
Fri, 5 Jul 2013 13:18:30 +0000 (18:48 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 31 Jul 2013 00:02:53 +0000 (02:02 +0200)
commit4b3b4a501dee3cee869f8bacb55f2cd30044cc9b
tree76b8a0c63f989996929296dee22f435d1e5d1f64
parentaa32acadcf0acc9c0017f084363048a3cc3e683d
mfd: Fix for DA9055 driver initialization

This patch clears all the events received while powering up DA9055.

While powering up DA9055, both power sequencer and gpio events are received.
These events remain uncleared after boot up, due to which further event handling
also fails. DA9055 has three event registers. The event register bits are set
to '1' on receiving an event. The events can be cleared on writing a '1' to
the set bit, which would then clear that bit to '0'. After applying this patch
we have a clean state after boot up.

Signed-off-by: Ankur Raina <Ankur.Raina@kpitcummins.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/da9055-core.c