Browse Source

drm/radeon: set hpd polarity at init time so hotplug detect works

Polarity needs to be set accordingly to connector status (connected
or disconnected). Set it up at module init so first hotplug works
reliably no matter what is the initial set of connector.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Jerome Glisse 13 years ago
parent
commit
8ab250d448
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpu/drm/radeon/radeon_connectors.c

+ 1 - 0
drivers/gpu/drm/radeon/radeon_connectors.c

@@ -1790,6 +1790,7 @@ radeon_add_atom_connector(struct drm_device *dev,
 			connector->polled = DRM_CONNECTOR_POLL_CONNECT;
 	} else
 		connector->polled = DRM_CONNECTOR_POLL_HPD;
+	radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd);
 
 	connector->display_info.subpixel_order = subpixel_order;
 	drm_sysfs_connector_add(connector);