OSDN Git Service

OMAPDSS: DISPC: fix context restore
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 21 Nov 2013 14:01:40 +0000 (16:01 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Jan 2014 10:19:52 +0000 (12:19 +0200)
DISPC_MSTANDBY_CTRL register is used in the driver, but it's not
restored in dispc_restore_context(), causing problems after resume.

Instead of adding DISPC_MSTANDBY_CTRL to dispc_restore_context(), let's
call _omap_dispc_initial_config() as the first thing in
dispc_runtime_resume(). This will initialize the DISPC core registers
properly, and will avoid similar issues in the future.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c

index 533539e..0db46c0 100644 (file)
@@ -3740,6 +3740,8 @@ static int dispc_runtime_suspend(struct device *dev)
 
 static int dispc_runtime_resume(struct device *dev)
 {
+       _omap_dispc_initial_config();
+
        dispc_restore_context();
 
        return 0;