[Intel-gfx] [PATCH 2/3] [DRM/I915]:Disable the unused connectors explicitly

yakui.zhao at intel.com yakui.zhao at intel.com
Wed Jul 8 08:13:13 CEST 2009


From: Zhao Yakui <yakui.zhao at intel.com>

Disable the unused connectors explicitly when restoring the modeset.

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
Acked-by:  Jesse Barnes <jbarnes at virtuousgeek.org>
Acked-by:  Dave Airlie <airlied at redhat.com>
---
 drivers/gpu/drm/drm_crtc_helper.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index a6f73f1..3da9cfa 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -1090,6 +1090,8 @@ int drm_helper_resume_force_mode(struct drm_device *dev)
 		if (ret == false)
 			DRM_ERROR("failed to set mode on crtc %p\n", crtc);
 	}
+	/* disable the unused connectors while restoring the modesetting */
+	drm_helper_disable_unused_functions(dev);
 	return 0;
 }
 EXPORT_SYMBOL(drm_helper_resume_force_mode);
-- 
1.5.4




More information about the Intel-gfx mailing list