drm/radeon: set hpd polarity at init time so hotplug detect works
authorJerome Glisse <jglisse@redhat.com>
Fri, 28 Oct 2011 21:52:34 +0000 (17:52 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Nov 2011 16:02:04 +0000 (16:02 +0000)
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>
drivers/gpu/drm/radeon/radeon_connectors.c

index ff6a2e0..22ee352 100644 (file)
@@ -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);