]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm: don't poll forced connectors
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Oct 2012 18:23:38 +0000 (18:23 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2012 06:06:12 +0000 (16:06 +1000)
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: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c

index 5ee192885c973b49e7bd67400c7267f7405e06c7..6437bb9ed81ccff678fb73b49c95737b6a31d62e 100644 (file)
@@ -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)