From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH] drm/i915: Eliminate lots of WARNs when there's no backlight present Date: Thu, 16 Jan 2014 19:09:13 +0200 Message-ID: <20140116170913.GO9454@intel.com> References: <1389889635-27623-1-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 mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 4102AFA34F for ; Thu, 16 Jan 2014 09:09:16 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Daniel Vetter Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Thu, Jan 16, 2014 at 05:55:48PM +0100, Daniel Vetter wrote: > On Thu, Jan 16, 2014 at 5:27 PM, wrote: > > From: Ville Syrj=E4l=E4 > > > > My 855gm doesn't register the intel backlight but it still ends up > > calling the backlight code to enable/disable the backlight via the > > LVDS code. This leads to some WARNs due to backlight.max being 0. > > > > Let's have intel_panel_enable_backlight() and intel_panel_disable_backl= ight() > > check whether there's a backlight present or not. > > > > Also move the backlight.present check from asle_set_backlight() into > > intel_panel_set_backlight() for some extra symmetry. > > > > Signed-off-by: Ville Syrj=E4l=E4 > = > Wouldn't that be a perfect machine to test Jani's > init-backlight-from-vbt patch? Iirc all the infrastructure is now > there ... My assumption has ben that the intel backlight stuff isn't hooked up to anything. But I guess I could give it a go. -- = Ville Syrj=E4l=E4 Intel OTC