From: Tomi Valkeinen Date: Wed, 1 Jun 2011 12:54:06 +0000 (+0300) Subject: OMAP: DSS2: DISPC: Fix context save/restore X-Git-Tag: v3.1-rc1~98^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49ea86f3fae21dd0334668b621e9c88f43a73c86;p=pandora-kernel.git OMAP: DSS2: DISPC: Fix context save/restore 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 --- Reading git-diff-tree failed