]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit093cda1bff3cf16f8a29c97579ff0e00b12ed059
tree7f3ce1f949cd109e27dd7e77c14d1d1047cb5b80
parent359ace2cfcc57384f0e8512943cdaa43c80b8cd9
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