From: 'Chris Wilson' Subject: Re: [PATCH] drm/i915: no lvds quirk for hp t5740 Date: Mon, 15 Apr 2013 10:59:27 +0100 Message-ID: <20130415095927.GD24925@cantiga.alporthouse.com> References: <2209078F92755E409EE9E33312D5D53804A5A222@VMBNCEX01.bnc.local> <1365769483-16706-1-git-send-email-ben@bnc.nl> <20130412124651.GE1408@cantiga.alporthouse.com> <2209078F92755E409EE9E33312D5D53804A5F484@VMBNCEX01.bnc.local> <20130415093905.GC24925@cantiga.alporthouse.com> <2209078F92755E409EE9E33312D5D53804A61CE1@VMBNCEX01.bnc.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 31C4FE6129 for ; Mon, 15 Apr 2013 02:59:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: <2209078F92755E409EE9E33312D5D53804A61CE1@VMBNCEX01.bnc.local> 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 (Bossers & Cnossen BV)" Cc: "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org On Mon, Apr 15, 2013 at 09:54:56AM +0000, Ben Mesman (Bossers & Cnossen BV) wrote: > > -----Oorspronkelijk bericht----- > > Van: 'Chris Wilson' [mailto:chris@chris-wilson.co.uk] > > Verzonden: maandag 15 april 2013 11:39 > > Aan: Ben Mesman (Bossers & Cnossen BV) > > CC: Daniel Vetter; dri-devel@lists.freedesktop.org > > Onderwerp: Re: [PATCH] drm/i915: no lvds quirk for hp t5740 > > > > On Mon, Apr 15, 2013 at 06:39:15AM +0000, Ben Mesman (Bossers & > > Cnossen BV) wrote: > > > Op vrijdag 12 april 2013 14:47 schreef Chris Wilson: > > > > 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. > > > > > > I am sorry, I don't know what you are asking here. Is there something > > wrong with this patch? > > > > I meant you could adjust the t5470e rule to also catch t5470: > > Except that strstr is (probably?) not case-insensitive. Whoops, then drop the "hp" prefix as the board vendor is already specified. -Chris -- Chris Wilson, Intel Open Source Technology Centre