From: Daniel Vetter Subject: Re: [PATCH 03/15] drm/i915: Don't get hw state from DVO chip unless DVO is enabled Date: Fri, 6 Jun 2014 18:39:19 +0200 Message-ID: <20140606163919.GJ7416@phenom.ffwll.local> References: <1401984964-25441-1-git-send-email-ville.syrjala@linux.intel.com> <1401984964-25441-4-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 541C76E3A9 for ; Fri, 6 Jun 2014 09:39:24 -0700 (PDT) Received: by mail-we0-f169.google.com with SMTP id w61so338111wes.14 for ; Fri, 06 Jun 2014 09:39:23 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1401984964-25441-4-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: ville.syrjala@linux.intel.com Cc: Thomas Richter , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Jun 05, 2014 at 07:15:52PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > Certain DVO chips (ns2501 for example) don't like to be accessed unless > the PLL is running. Simply skip the DVO get_hw_state if the DVO port > is disabled. > = > Signed-off-by: Ville Syrj=E4l=E4 Definitely makes sense independent of the other patches. Queued for -next, thanks for the patch. -Daniel > --- > drivers/gpu/drm/i915/intel_dvo.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > = > diff --git a/drivers/gpu/drm/i915/intel_dvo.c b/drivers/gpu/drm/i915/inte= l_dvo.c > index a3631c0..5d7d975 100644 > --- a/drivers/gpu/drm/i915/intel_dvo.c > +++ b/drivers/gpu/drm/i915/intel_dvo.c > @@ -112,7 +112,15 @@ static struct intel_dvo *intel_attached_dvo(struct d= rm_connector *connector) > = > static bool intel_dvo_connector_get_hw_state(struct intel_connector *con= nector) > { > + struct drm_device *dev =3D connector->base.dev; > + struct drm_i915_private *dev_priv =3D dev->dev_private; > struct intel_dvo *intel_dvo =3D intel_attached_dvo(&connector->base); > + u32 tmp; > + > + tmp =3D I915_READ(intel_dvo->dev.dvo_reg); > + > + if (!(tmp & DVO_ENABLE)) > + return false; > = > return intel_dvo->dev.dev_ops->get_hw_state(&intel_dvo->dev); > } > -- = > 1.8.5.5 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch