]> git.baikalelectronics.ru Git - kernel.git/commit
gma500: Fix incorrect SR issue when disabling CRTC already in disabled state
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 8 Aug 2012 13:53:15 +0000 (13:53 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Aug 2012 23:28:53 +0000 (09:28 +1000)
commitd4afddbca43acf4f2910ad266a77ab7c21855da3
treef1eaabec65a02c8470107b17ee19a8ff47f060a6
parent3fee2fbff42d82b26903d11bcb860c67c0653fbc
gma500: Fix incorrect SR issue when disabling CRTC already in disabled state

Currently when trying to call the DPMS off again for one CRTC with DPMS off,
it will firstly disable the SR and can't enable it again because of the
incorrect check/logic. In such case the self refresh is still disabled
although one CRTC pipe is active. This is wrong.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
[Ported to in kernel driver]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/cdv_intel_display.c