OMAP: DSS2: Check ctx loss count only when starting the first clock
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Tue, 1 Dec 2009 11:23:25 +0000 (13:23 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 15 Feb 2010 13:14:43 +0000 (15:14 +0200)
When OMAP PM layer is no-op/debug, the PM layer will increment context
loss count with every call. This resulted DSS2 to restore context
whenever a clock was enabled.

This commit checks the context loss count only when the context actually
could have been lost, ie. when enabling a clock when no clocks had been
previously enabled.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>

No differences found