Skip to content

Commit

Permalink
drm/radeon/kms: don't enable connectors that are off in the hotplug h…
Browse files Browse the repository at this point in the history
…andler

If we get a hotplug event on an connector that is off, don't
attempt to turn it on or off, it should already be off.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=728228

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Aug 12, 2011
1 parent 72fa599 commit 73104b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/radeon/radeon_connectors.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ void radeon_connector_hotplug(struct drm_connector *connector)

radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd);

/* if the connector is already off, don't turn it back on */
if (connector->dpms != DRM_MODE_DPMS_ON)
return;

/* powering up/down the eDP panel generates hpd events which
* can interfere with modesetting.
*/
Expand Down

0 comments on commit 73104b5

Please sign in to comment.