OMAP: DSS2: DISPC: Fix context save/restore
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 1 Jun 2011 12:54:06 +0000 (15:54 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 25 Jul 2011 07:22:07 +0000 (10:22 +0300)
The current method of saving and restoring the context could cause a
restore before saving, effectively "restoring" zero values to registers.

Add ctx_valid field to indicate if the saved context is valid and can be
restored.

Also restructure the code to save the ctx_loss_count in save_context(),
which makes more sense than the previous method of storing new
ctx_loss_count in dispc_need_ctx_restore.

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

No differences found