drm/exynos: check crtc's dpms mode at SetCrtc
authorInki Dae <inki.dae@samsung.com>
Fri, 14 Sep 2012 04:29:47 +0000 (13:29 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Oct 2012 01:06:01 +0000 (10:06 +0900)
commit32aeab17457c13e6a448ba0f6f3c03d6705e5592
tree7f3ce1f949cd109e27dd7e77c14d1d1047cb5b80
parentef6223dc6bab64c99b5c869b652fa13436afc38a
drm/exynos: check crtc's dpms mode at SetCrtc

when fb changing is requested, crtc's dpms mode should be on.
if not on, return -EPERM so that the hardware can't be accessed.
if user requesed dpms off and next SetCrtc with an another fb
then the hardware can be accessed with dpms off to write overlay
data onto some registers so this patch will prevent from accessing
the hardware with dpms off.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c