From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH 14/31] drm/i915: display pll hw state readout and checking Date: Wed, 12 Jun 2013 16:39:14 +0300 Message-ID: <20130612133914.GR5004@intel.com> References: <1370432073-27634-1-git-send-email-daniel.vetter@ffwll.ch> <1370432073-27634-15-git-send-email-daniel.vetter@ffwll.ch> <20130612133123.GB15338@strange.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 442BFE6412 for ; Wed, 12 Jun 2013 06:39:44 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130612133123.GB15338@strange.amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Damien Lespiau Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jun 12, 2013 at 02:31:23PM +0100, Damien Lespiau wrote: > On Wed, Jun 05, 2013 at 01:34:16PM +0200, Daniel Vetter wrote: > > @@ -8621,6 +8657,17 @@ static void intel_cpu_pll_init(struct drm_device= *dev) > > intel_ddi_pll_init(dev); > > } > > = > > +static bool ibx_pch_dpll_get_hw_state(struct drm_i915_private *dev_pri= v, > > + struct intel_shared_dpll *pll, > > + struct intel_dpll_hw_state *hw_state) > > +{ > > + uint32_t val; > > + > > + val =3D I915_READ(PCH_DPLL(pll->id)); > > + > > + return val & DPLL_VCO_ENABLE; > > +} > > + > = > Don't we want !!(val & DPLL_VCO_ENABLE) here? we're comparing this to 0 > and 1. bool is always 0 or 1. -- = Ville Syrj=E4l=E4 Intel OTC