From: Daniel Vetter Subject: Re: [PATCH 2/3] drm/i915: check PPS regs for sanity when using eDP Date: Wed, 11 Apr 2012 18:04:18 +0200 Message-ID: <20120411160417.GO4296@phenom.ffwll.local> References: <1334084285-4770-1-git-send-email-jbarnes@virtuousgeek.org> <1334084285-4770-2-git-send-email-jbarnes@virtuousgeek.org> <1334093218_352690@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 17A6BA0932 for ; Wed, 11 Apr 2012 09:03:25 -0700 (PDT) Received: by eaak13 with SMTP id k13so270281eaa.36 for ; Wed, 11 Apr 2012 09:03:25 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1334093218_352690@CP5-2952> 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Apr 10, 2012 at 10:26:56PM +0100, Chris Wilson wrote: > On Tue, 10 Apr 2012 11:58:04 -0700, Jesse Barnes wrote: > > If these regs don't have valid values, the panel won't come up, and may > > even cause a system hang. So do a basic sanity check when an eDP panel > > is detected. > > > > Signed-off-by: Jesse Barnes > > Other than adding a cleanup: error path (definitely before the third > person cut'n'pastes the intel_dp*destroy()), and that checking for zero > seems a little crude, > > Reviewed-by: Chris Wilson Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48