Received: by 10.223.185.116 with SMTP id b49csp5075649wrg; Wed, 7 Mar 2018 06:05:00 -0800 (PST) X-Google-Smtp-Source: AG47ELuDIHVRCQ9W2Krz4jDBwQUPCBWBaR45CmDg6qWJKaCRFj2y4hFcMP140nWEYUThErIpVEYD X-Received: by 10.98.192.203 with SMTP id g72mr22872078pfk.27.1520431500091; Wed, 07 Mar 2018 06:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520431500; cv=none; d=google.com; s=arc-20160816; b=JhYntO019rycSEj+TjzPQLDvCI4GDd2qEB+1OKCKHQnPiKkVnRtpt08bdnH5ZV1X8R E+O58sVF2dq+6c/UVGzY4XDjnSxIPKKukfKYHGzh5Rwrku/qtVvZsYlO+DW69yXwQD+X /3CPf2QpcPiUqG5AxobyGc+Qb22i0Vz9SR/uREJLjj9Hg22DUg/oUyXeepEPC8A2Fe91 QIvhL8gQpiaQcNOLCjnMCU0pwDZWKpP9GuoRV0c4uR19ZioYIKbaavyfyd50AfR25Egu 7Th1G9flpoOi3dMFunUja1ufl5jzADHsmV5GLGO3NC7Ie28svC+hNO8vmysKe4v0Z1R7 p1cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=spg7xVNRaU18Qx937RD+1IHOGqAhepGn+vJXOLte97U=; b=C3JflkY6nw8OBEMiEs8pybl2isSEB7tjmCPWC0DVKisASVoSnm9GPzxQ1qysxWR+zi fcNTUAd/WOur2SP50OHY2Sit+LRLae66AxofGRmhsYfe9ViM1YYkBe1rQHmuZRrHHlpj r/do7KxN1ciY5LvP32COHKl3hkTfV0Rj9hHcrMb8xhqN0/KUdSXPQSg/m560x5kuCpPw ZMgegLYK1F9auR9rTP/qYmn8XtpmmHX9JQBJwCeVaTZdt6W0H5MwIPNNDxZbEsypxo1Z ZUGQbczR/NtO/MMuhiAIF7exkv0EH0Ak89wGkl9U/qobNjoED1o7xCSfTJ8NAwYUkTSw kNrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@seppia.net header.s=dkim-seppianet header.b=gqBnjVSC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p33-v6si12975857pld.310.2018.03.07.06.04.40; Wed, 07 Mar 2018 06:04:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@seppia.net header.s=dkim-seppianet header.b=gqBnjVSC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933575AbeCGOCr (ORCPT + 99 others); Wed, 7 Mar 2018 09:02:47 -0500 Received: from broccolo.seppia.net ([185.61.148.186]:57704 "EHLO broccolo.seppia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933502AbeCGOCl (ORCPT ); Wed, 7 Mar 2018 09:02:41 -0500 X-Greylist: delayed 355 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Mar 2018 09:02:40 EST Received: from mail.seppia.net (unknown [10.97.0.17]) by broccolo.seppia.net (Postfix) with ESMTP id C743321B45; Wed, 7 Mar 2018 08:56:43 -0500 (EST) Received: from provola (nautilus.seppia.net [127.0.0.1]) by mail.seppia.net (Postfix) with SMTP id 5A1361E001D; Wed, 7 Mar 2018 14:56:43 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.seppia.net 5A1361E001D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=seppia.net; s=dkim-seppianet; t=1520431003; bh=U6226kjR/HAQ6drTncJujezJDcBSHfS1m2xIT6ACYQc=; h=From:To:Cc:Subject:Date; b=gqBnjVSCWnXe/5tXrBEhUXw+/RuAKTKTWzCXGybOwL71fa+YoZzHm0caHXv3efydH Q/IhlolprASHsfvxMtnImdUxbTDBFUfB4r5xyeh8aJSIXOb90t22Ho+B3R9dnFOaxC CncFY/WhyiMPjW/clMKirc3lw2ndHur8b9TQAkgNG22fL6qCtdUeG5uaQdSfljYIZo YiONgOwZihwbVje6Hjowj5v4JczN/A4ZD84JdfLRrdDBMYPanbu0lsXVBV+TB3fnG/ iqSp5KfMPIYPUS53J5NU4QFfcmpB4x4NV0v4iCSt8honOlPtQ6P4q/lVLwAW5JxXYl wwx//MsHIaZuFY3vZDdNKglrxx9JMpMmcvnUMC+GyByeTbM8mCJDzOEtqBNJpdusbk wFFywdJhDkPQ+flpLvNHuW2mGRQpmEKsaDaMRicxeXTXUw+IyKzuyMZ/SSvvAZf5D/ nENq2ZDQGAU5383h028y9HmgsJRyedDYC6rnGZnb0TkzanVjKuc/7kawRw38142063 2Gz5Msm/PLAolxuyFebxABwDxVBYm90c75rMoKImDjfYPg7irx4IHijBn30hAd/HKO DO0eaHQSESFfk9yioRkPesIDbNZRLB6Td6QnQPEe6TNRTbYyrnygMpDSp94BCAGq/j ejrsTDsmkofT8aeyfM8bzrdU= From: Salvatore Bellizzi To: , , Cc: Subject: [RESEND][PATCH] platform/chrome: cros_ec_lpc: Add support for Google devices using custom coreboot firmware Content-Type: text/plain; charset=UTF-8 Message-ID: Date: Wed, 7 Mar 2018 14:56:43 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds generic device information to the DMI table of the cros_ec_lpc driver, needed for Chromebooks/boxes using a custom coreboot firmware. The DMI info would not contain "Google_*" as BIOS version string, instead the system vendor string would still be "GOOGLE", so this seems to be a reasonable match for every Chromebook/box running a custom firmware. Signed-off-by: Salvatore Bellizzi Signed-off-by: Vittorio Gambaletta --- drivers/platform/chrome/cros_ec_lpc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index af89e82eecd2..c8450ae3cd60 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -341,6 +341,18 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { DMI_MATCH(DMI_BIOS_VERSION, "Google_"), }, }, + { + /* + * If the box is running custom coreboot firmware then the + * DMI BIOS version string will not be matched by "Google_", + * but the system vendor string will still be matched by + * "GOOGLE". + */ + .matches = { + DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"), + DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"), + }, + }, { /* x86-link, the Chromebook Pixel. */ .matches = { -- 2.16.2