public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Imre Deak <imre.deak@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915: add MISSING_CASE to a few port/aux power domain helpers
Date: Wed, 18 Nov 2015 16:26:17 +0200	[thread overview]
Message-ID: <20151118142617.GK4437@intel.com> (raw)
In-Reply-To: <1447855045-7109-2-git-send-email-imre.deak@intel.com>

On Wed, Nov 18, 2015 at 03:57:25PM +0200, Imre Deak wrote:
> MISSING_CASE() would have been useful to track down a recent problem in
> intel_display_port_aux_power_domain(), so add it there and a few related
> helpers. This was also suggested by Ville in his review of the latest
> DMC/DC changes, we forgot to address that.
> 
> Signed-off-by: Imre Deak <imre.deak@intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  drivers/gpu/drm/i915/intel_display.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index cdc1761..b3d0557 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -5166,7 +5166,7 @@ static enum intel_display_power_domain port_to_power_domain(enum port port)
>  	case PORT_E:
>  		return POWER_DOMAIN_PORT_DDI_E_LANES;
>  	default:
> -		WARN_ON_ONCE(1);
> +		MISSING_CASE(port);
>  		return POWER_DOMAIN_PORT_OTHER;
>  	}
>  }
> @@ -5186,7 +5186,7 @@ static enum intel_display_power_domain port_to_aux_power_domain(enum port port)
>  		/* FIXME: Check VBT for actual wiring of PORT E */
>  		return POWER_DOMAIN_AUX_D;
>  	default:
> -		WARN_ON_ONCE(1);
> +		MISSING_CASE(port);
>  		return POWER_DOMAIN_AUX_A;
>  	}
>  }
> @@ -5247,7 +5247,7 @@ intel_display_port_aux_power_domain(struct intel_encoder *intel_encoder)
>  		intel_dig_port = enc_to_mst(&intel_encoder->base)->primary;
>  		return port_to_aux_power_domain(intel_dig_port->port);
>  	default:
> -		WARN_ON_ONCE(1);
> +		MISSING_CASE(intel_encoder->type);
>  		return POWER_DOMAIN_AUX_A;
>  	}
>  }
> -- 
> 2.5.0

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-11-18 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18 13:57 [PATCH 1/2] drm/i915/ddi: fix intel_display_port_aux_power_domain() after HDMI detect Imre Deak
2015-11-18 13:57 ` [PATCH 2/2] drm/i915: add MISSING_CASE to a few port/aux power domain helpers Imre Deak
2015-11-18 14:26   ` Ville Syrjälä [this message]
2015-11-18 14:34   ` Patrik Jakobsson
2015-11-18 19:53     ` Imre Deak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151118142617.GK4437@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox