From: Chris Wilson Subject: Re: [PATCH] drm/i915: no lvds quirk for hp t5740 Date: Fri, 12 Apr 2013 13:46:51 +0100 Message-ID: <20130412124651.GE1408@cantiga.alporthouse.com> References: <2209078F92755E409EE9E33312D5D53804A5A222@VMBNCEX01.bnc.local> <1365769483-16706-1-git-send-email-ben@bnc.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id ED7CFE5C98 for ; Fri, 12 Apr 2013 05:46:54 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1365769483-16706-1-git-send-email-ben@bnc.nl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Ben Mesman Cc: "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org On Fri, Apr 12, 2013 at 02:24:43PM +0200, Ben Mesman wrote: > Last year, a patch was made for the "HP t5740e Thin Client" (see > http://lists.freedesktop.org/archives/dri-devel/2012-May/023245.html). > This device reports an lvds panel, but does not really have one. > > The predecessor of this device is the "hp t5740", which also does not have > an lvds panel. This patch will add the same quirk for this device. > > Signed-off-by: Ben Mesman > --- > drivers/gpu/drm/i915/intel_lvds.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c > index ca2d903..8a56d9b 100644 > --- a/drivers/gpu/drm/i915/intel_lvds.c > +++ b/drivers/gpu/drm/i915/intel_lvds.c > @@ -816,6 +816,14 @@ static const struct dmi_system_id intel_no_lvds[] = { > }, > { > .callback = intel_no_lvds_dmi_callback, > + .ident = "Hewlett-Packard hp t5740", > + .matches = { > + DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), > + DMI_MATCH(DMI_PRODUCT_NAME, "hp t5740"), > + }, > + }, One thing to note is that the dmi matching routine uses strstr (as opposed to dmi_match() which uses strcmp!) so this rule should encompass the following rule for its offspring. -Chris -- Chris Wilson, Intel Open Source Technology Centre