Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11e68685 authored by Daniel Vetter's avatar Daniel Vetter Committed by Dave Airlie
Browse files

drm: don't poll forced connectors



Otherwise if the detect callback reports a different state than what
the user forced (rather likely), we continously annoy userspace about
a hotplug uevent.

Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 905bc9ff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -965,6 +965,10 @@ static void output_poll_execute(struct work_struct *work)
	mutex_lock(&dev->mode_config.mutex);
	list_for_each_entry(connector, &dev->mode_config.connector_list, head) {

		/* Ignore forced connectors. */
		if (connector->force)
			continue;

		/* Ignore HPD capable connectors and connectors where we don't
		 * want any hotplug detection at all for polling. */
		if (!connector->polled || connector->polled == DRM_CONNECTOR_POLL_HPD)