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

Alex Deucher alexdeucher at gmail.com
Tue Nov 1 14:27:26 PDT 2011


On Fri, Oct 28, 2011 at 5:52 PM,  <j.glisse at gmail.com> wrote:
> From: Jerome Glisse <jglisse at redhat.com>
>
> 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.

Thinking about this more, we should probably do this on resume as
well.  Calling it in hpd_init should cover all the bases.

Alex

>
> Signed-off-by: Jerome Glisse <jglisse at redhat.com>
> cc: stable at kernel.org
> ---
>  drivers/gpu/drm/radeon/radeon_connectors.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
> index dec6cbe..bfdd48b 100644
> --- a/drivers/gpu/drm/radeon/radeon_connectors.c
> +++ b/drivers/gpu/drm/radeon/radeon_connectors.c
> @@ -1789,6 +1789,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);
> --
> 1.7.6.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-drm-radeon-kms-set-HPD-polarity-in-hpd_init.patch
Type: text/x-patch
Size: 3697 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111101/f7eda478/attachment.bin>


More information about the dri-devel mailing list