Skip to content

Commit

Permalink
DRM: Don't re-poll connector for disconnect
Browse files Browse the repository at this point in the history
DRM probe should not repoll a connector if it is already
connected and the DRM_CONNECTOR_POLL_DISCONNECT flag is not set.

Signed-off-by: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Josef Holzmayr authored and Daniel Vetter committed Apr 20, 2015
1 parent 396aa44 commit a3c6d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/drm_probe_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,15 @@ static void output_poll_execute(struct work_struct *work)
if (!connector->polled || connector->polled == DRM_CONNECTOR_POLL_HPD)
continue;

repoll = true;

old_status = connector->status;
/* if we are connected and don't want to poll for disconnect
skip it */
if (old_status == connector_status_connected &&
!(connector->polled & DRM_CONNECTOR_POLL_DISCONNECT))
continue;

repoll = true;

connector->status = connector->funcs->detect(connector, false);
if (old_status != connector->status) {
const char *old, *new;
Expand Down

0 comments on commit a3c6d68

Please sign in to comment.