]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:36:53 +0000 (09:36 -0800)
commit 8ab250d4484b72ccc78e34276c5ffa84c1d41303 upstream.

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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_connectors.c

index 2109c17a982017890d2d12cd7d7bdcf5a53f6548..ffdff8d94c261218a9243bce5b9d7dcca31d1e09 100644 (file)
@@ -1779,6 +1779,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);