Skip to content

Commit 41c43f9

Browse files
committed
drm/i915: Inject a failure point when registering a connector
Check we can handle a late display load failure where the final act of registering the connector fails. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Ville Syrjala <ville.syrjala@linux.intel.com> Cc: Daniel Vetter <daniel.vetter@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: Jani Nikula <jani.nikula@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181010123833.16797-1-chris@chris-wilson.co.uk
1 parent 1c21348 commit 41c43f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/gpu/drm/i915/intel_connector.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,15 @@ int intel_connector_register(struct drm_connector *connector)
107107
if (ret)
108108
goto err;
109109

110+
if (i915_inject_load_failure()) {
111+
ret = -EFAULT;
112+
goto err_backlight;
113+
}
114+
110115
return 0;
111116

117+
err_backlight:
118+
intel_backlight_device_unregister(intel_connector);
112119
err:
113120
return ret;
114121
}

0 commit comments

Comments
 (0)