[Intel-gfx] [PATCH 8/8] drm/i915: inform drm_fb_helper if we abandoned a connected output v2

Jesse Barnes jbarnes at virtuousgeek.org
Tue Dec 17 01:34:29 CET 2013


Otherwise subsequent fb activity will try to do blank/unblank on outputs
that were never fully enabled.

v2: drop unnecessary enabled[] modifications in failure cases (Chris)

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_fbdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c
index 53675d2..202ee31 100644
--- a/drivers/gpu/drm/i915/intel_fbdev.c
+++ b/drivers/gpu/drm/i915/intel_fbdev.c
@@ -308,6 +308,7 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper,
 		if (!encoder || !encoder->crtc) {
 			DRM_DEBUG_KMS("connector %d has no encoder or crtc, skipping\n",
 				      connector->base.id);
+			enabled[i] = false;
 			continue;
 		}
 
-- 
1.8.4.2




More information about the Intel-gfx mailing list