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)
commit25e9dc69709afad2be8de4ac2ecd6015356936ca
treef1eaabec65a02c8470107b17ee19a8ff47f060a6
parent4dabd1b94da7aedb5c18b67e85c6a71cc1161eac
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