Commit 23c50968 authored by Simon Ser's avatar Simon Ser
Browse files

i915/display/dp: send a more fine-grained link-status uevent



When link-status changes, send a hotplug uevent which contains the
connector ID. That way, user-space can more easily figure out that
only this connector has been updated.

Changes in v4: avoid sending two uevents (Ville)

Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211018084707.32253-7-contact@emersion.fr
parent d35d4dbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4947,7 +4947,7 @@ static void intel_dp_modeset_retry_work_fn(struct work_struct *work)
					       DRM_MODE_LINK_STATUS_BAD);
	mutex_unlock(&connector->dev->mode_config.mutex);
	/* Send Hotplug uevent so userspace can reprobe */
	drm_kms_helper_hotplug_event(connector->dev);
	drm_kms_helper_connector_hotplug_event(connector);
}

bool