[Intel-gfx] [PATCH v3 3/7] drm/i915: Mask out the HPD irq bits before setting them individually.
Jani Nikula
jani.nikula at linux.intel.com
Thu Apr 11 11:56:53 CEST 2013
On Tue, 09 Apr 2013, Egbert Eich <eich at freedesktop.org> wrote:
> From: Egbert Eich <eich at suse.de>
>
> To disable previously enabled HPD IRQs we need to reset them and
> set the enabled ones individually.
Reviewed-by: Jani Nikula <jani.nikula at intel.com>
>
> Signed-off-by: Egbert Eich <eich at suse.de>
> ---
> drivers/gpu/drm/i915/i915_irq.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index 5408a3a..a3f1ac4 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -2117,9 +2117,11 @@ static void ibx_hpd_irq_setup(struct drm_device *dev)
> u32 hotplug;
>
> if (HAS_PCH_IBX(dev)) {
> + mask &= ~SDE_HOTPLUG_MASK;
> list_for_each_entry(intel_encoder, &mode_config->encoder_list, base.head)
> mask |= hpd_ibx[intel_encoder->hpd_pin];
> } else {
> + mask &= ~SDE_HOTPLUG_MASK_CPT;
> list_for_each_entry(intel_encoder, &mode_config->encoder_list, base.head)
> mask |= hpd_cpt[intel_encoder->hpd_pin];
> }
> --
> 1.8.1.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list