OMAP3: PM: fix IO daisy chain enable to use PM_WKEN reg
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 9 Jun 2010 10:53:09 +0000 (13:53 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Jun 2010 12:37:41 +0000 (15:37 +0300)
commit0b96a3a3c5c5e6e1b79a05c23d110d59518f4fc8
treecd4b60e4ce289a4baeaf53f7955d56df43ffe6ee
parentf7ec0b0b16c97a75a1b6aa8bc8b32548003f3339
OMAP3: PM: fix IO daisy chain enable to use PM_WKEN reg

Checking to se if the IO daisy chain is enabled should be checking the
PM_WKEN register, not the PM_WKST register.  Reading PM_WKST tells us
if an event occurred, not whether or not it is enabled.

Apparently, we've been lucky until now in that a pending event has not
been there during enable.  However, on 3630/Zoom3, I noticed because
of the WARN that this timeout was always happening.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm34xx.c