[Intel-gfx] [PATCH 11/14] drm/i914: Refactor vlv_display_irq_postinstall()
Paulo Zanoni
przanoni at gmail.com
Thu Oct 30 21:25:59 CET 2014
2014-10-30 15:43 GMT-02:00 <ville.syrjala at linux.intel.com>:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Split the vlv display irq postinstall code to a separate function so
> that we can share it with chv.
Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_irq.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index b05dee5..6a00e6e 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -3425,10 +3425,8 @@ void valleyview_disable_display_irqs(struct drm_i915_private *dev_priv)
> valleyview_display_irqs_uninstall(dev_priv);
> }
>
> -static int valleyview_irq_postinstall(struct drm_device *dev)
> +static void vlv_display_irq_postinstall(struct drm_i915_private *dev_priv)
> {
> - struct drm_i915_private *dev_priv = dev->dev_private;
> -
> dev_priv->irq_mask = ~0;
>
> I915_WRITE(PORT_HOTPLUG_EN, 0);
> @@ -3449,6 +3447,13 @@ static int valleyview_irq_postinstall(struct drm_device *dev)
>
> I915_WRITE(VLV_IIR, 0xffffffff);
> I915_WRITE(VLV_IIR, 0xffffffff);
> +}
> +
> +static int valleyview_irq_postinstall(struct drm_device *dev)
> +{
> + struct drm_i915_private *dev_priv = dev->dev_private;
> +
> + vlv_display_irq_postinstall(dev_priv);
>
> gen5_gt_irq_postinstall(dev);
>
> --
> 2.0.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Paulo Zanoni
More information about the Intel-gfx
mailing list