]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: arizona: Defer patch initialistation until after first device boot
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 2 Dec 2012 02:41:46 +0000 (11:41 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 2 Dec 2012 23:36:44 +0000 (00:36 +0100)
commit62d62b59bd100b8f146ea941dad273656371a386
tree93dc217f0188b4a70449698c471c3aa022fee8be
parent0582c0fafc36e4a1f2067ea8377c9902cc7997bf
mfd: arizona: Defer patch initialistation until after first device boot

Make sure that we don't race with the initial device boot by only doing
the initialisation after we've waited for the boot to complete.

The runtime PM code already waits for the boot to complete before it
syncs the register patches so in most systems if a race does occur we will
power down very soon afterwards and recover anyway.

Reported-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/arizona-core.c