mfd: Print warning for twl4030 out-of-order script loading
authorAmit Kucheria <amit.kucheria@verdurent.com>
Mon, 17 Aug 2009 14:01:56 +0000 (17:01 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Sep 2009 07:47:22 +0000 (09:47 +0200)
commit75a7456539224c5c5c254130afdb18bd7eb2286f
tree5aa70e1b0731e6c90a1bcb53eef57c126bec0c0e
parentebf0bd366ed8161e6fbc919705d878ccbfd51624
mfd: Print warning for twl4030 out-of-order script loading

When the sleep script is loaded before the wakeup script, there is a
chance that the system might go to sleep before the wakeup script
loading is completed. This will lead to a system that does not wakeup
and has been observed to cause non-booting boards.

Various options were considered to solve this problem, including
modification of the core twl4030 power code to be smart enough to
reorder the loading of the scripts. But it felt too over-engineered.

Hence this patch just warns the DPS script developer so that they may be
reordered in the board-code itself.

Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-power.c