drm/i915/crt: fix DPMS standby and suspend mode handling
Subsystems (2)
PATCH 1/1 drm/i915/crt: fix DPMS standby and suspend mode handling
PCH platforms and VLV should map DPMS standby and suspend modes to off, but due to a buggy reversed comparison this is done on pre-PCH platforms instead.
Reported-by Loïc Yhuel <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56754
Signed-off-by Jani Nikula <[email protected]>
--- drivers/gpu/drm/i915/intel_crt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_crt.c +1 -1
@@ -143,7 +143,7 @@ static void intel_crt_dpms(struct drm_connector *connector, int mode)int old_dpms;/* PCH platforms and VLV only support on/off. */ -if (INTEL_INFO (dev)->gen <5 && mode !=DRM_MODE_DPMS_ON ) +if (INTEL_INFO (dev)->gen >=5 && mode !=DRM_MODE_DPMS_ON ) mode =DRM_MODE_DPMS_OFF ;if (mode == connector->dpms)
Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 7 lines · Jani Nikula
PCH platforms and VLV should map DPMS standby and suspend modes to off, but due to a buggy reversed comparison this is done on pre-PCH platforms instead.
Reported-by Loïc Yhuel <[email protected]>Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56754
Signed-off-by Jani Nikula <[email protected]>
Picked up for -fixes, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch