drm/exynos/decon5433: update shadow registers iff there are active windows
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 9 Aug 2016 08:44:25 +0000 (10:44 +0200)
committerAndrzej Hajda <a.hajda@samsung.com>
Tue, 9 Aug 2016 10:02:49 +0000 (12:02 +0200)
commite51dd095381c633456e125ccb81a30e832199742
tree82f2034f8d9ceb49b85bda02712ce1be8eec18c5
parentb69a86c13e9edea37fc765acf844732446fb7048
drm/exynos/decon5433: update shadow registers iff there are active windows

Improper usage of DECON_UPDATE register leads to subtle errors.
If it set in decon_commit when there are no active windows it results
in slow registry updates - all subsequent shadow registry updates takes more
than full vblank. On the other side if it is not set when there are
active windows it results in garbage on the screen after suspend/resume of
FB console.

The patch hopefully fixes it.

Change-Id: I3cbd68f9af5748f74c5a878de34b6b531aa26074
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c