Re: [PATCH v2 18/21] drm/i915: vlv: factor out valleyview_display_irq_install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue,  4 Mar 2014 19:23:07 +0200
Imre Deak <imre.deak@xxxxxxxxx> wrote:

> +void valleyview_enable_display_irqs(struct drm_i915_private *dev_priv)
> +{
> +	assert_spin_locked(&dev_priv->irq_lock);
> +
> +	if (dev_priv->display_irqs_enabled)
> +		return;
> +
> +	dev_priv->display_irqs_enabled = true;
> +
> +	if (dev_priv->dev->irq_enabled)
> +		valleyview_display_irqs_install(dev_priv);
> +}

This made me do a double take, then I saw you were checking the actual
drm_device irq enabled state rather than checking the new field again...

Looks good.

Reviewed-by: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>

-- 
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux