OMAP: Fix race condition with autodeps
authorKalle Jokiniemi <kalle.jokiniemi@digia.com>
Wed, 14 Oct 2009 22:48:34 +0000 (15:48 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 14 Oct 2009 23:01:58 +0000 (16:01 -0700)
There is a possible race condition in clockdomain
code handling hw supported idle transitions.

When multiple autodeps dependencies are being added
or removed, a transition of still remaining dependent
powerdomain can result in false readings of the
state counter. This is especially fatal for off mode
state counter, as it could result in a driver not
noticing a context loss.

Fixed by disabling hw supported state transitions
when autodeps are being changed.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>

No differences found