Received: by 10.223.176.46 with SMTP id f43csp4038286wra; Tue, 23 Jan 2018 03:18:18 -0800 (PST) X-Google-Smtp-Source: AH8x226IHuBu/O1Ag9FMjaENBmNDZuItOMT2+JvhRjHnRlTaTi9USHaI7nFXFddoFCuZNhvUdheM X-Received: by 2002:a17:902:9346:: with SMTP id g6-v6mr5372220plp.379.1516706298704; Tue, 23 Jan 2018 03:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516706298; cv=none; d=google.com; s=arc-20160816; b=X6RQaOCYeLt5gmt644CLLP3NZmVJxrQYY463uMhAIejab3CIKa7mKcrOFuQ/5C+n87 R0Lqg22G4AE+yzBlk24/umuWJwhRR2HmseqqVu0ySqEJauRCI6ERTBFphulITBUu9czJ OyTS1nxHCyEcVgLBDqFBaSd5PvQow2hlIIdTpWKWuX3n6XcTwVdhhx0J8AimnttorROK 4QtHq3h//dCAOEU5/VX3qEMjR1xYa02FeanpyiiVpOvrce5MZKX1VA1jzsvMLdFSimP9 z5jjXWj5UzE5P0bm+CVDjAhLsDDCMybzj4F2MSsWTyoEO54R7zf45o95vT3mMZhhALZe 5+xw== 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=csPs0TselOLSVz9yFL7YHU9dv+EQIUhkVobwFryPv6g=; b=B+bZakC3CcLXPcXmYYTvNVqW2gWoNQcMUV+xSEiNHM/rQDS+dCVDRuRgGzmTEcPGWI rgSzNMqcD8MFdmYPA8AmNIJpTdIMohYx5I8AzYkyfROqPzfVHKHgV3xb3PolGURubUxc FqI5AuQa0O2PLd0HyaqNe7rzCMrLYYuY5m/v1T8ab8NyoKn1mYMFqsG2isd8uLJ//8qQ tefy+L14oKxjRKLoYrtJIY6ns8N2bgKgBhkwe66Cg7DB5FFAfiKJsoI4lAm3kMPXazoY Zbif1W+id88cvK4ruxFd5HU8eHXqgFqja5wDAB3NbuQfvvmubzaUZWIW6UvuhNUXE+Pz pXAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@seppia.net header.s=dkim-seppianet header.b=KzUjKHsr; 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 k193si14647801pgc.506.2018.01.23.03.18.03; Tue, 23 Jan 2018 03:18:18 -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=KzUjKHsr; 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 S1751265AbeAWLRX (ORCPT + 99 others); Tue, 23 Jan 2018 06:17:23 -0500 Received: from broccolo.seppia.net ([185.61.148.186]:59044 "EHLO broccolo.seppia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbeAWLRV (ORCPT ); Tue, 23 Jan 2018 06:17:21 -0500 X-Greylist: delayed 589 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Jan 2018 06:17:21 EST Received: from mail.seppia.net (unknown [10.97.0.17]) by broccolo.seppia.net (Postfix) with ESMTP id 5557421B7C; Tue, 23 Jan 2018 06:07:31 -0500 (EST) Received: from provola (nautilus.seppia.net [127.0.0.1]) by mail.seppia.net (Postfix) with SMTP id BFDDE1E261F; Tue, 23 Jan 2018 12:07:30 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.seppia.net BFDDE1E261F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=seppia.net; s=dkim-seppianet; t=1516705650; bh=LcYy07AQMTK30HSZLGtkji7G/7nyGUVGzODUUh8AxJc=; h=From:To:Cc:Subject:Date; b=KzUjKHsrhgydSO3i8YIgL+Dki94NczYltymVB4GCFvfVWCNDVTrCIIoam2leuxqTm CppOgWAZa1WXLFu5L2ULQcduf3s3vkX854KKTyOo6XxVzD6yUcUj5ru1eCe4lm0Icq OY05udQEhW1hYC2i9y0RzYMxQVznrGsgDVJuP4XyIKHTZLFetdGfxCVzSKtSLUwRxM o9q0ABYuluI8hXWyob1Ao3nQrPS1UB2aROFY/UJBxEd7ryah7q4YGb4/YJ/aptQWtZ kSNZTlMszqNmdF8LwJFNT6AGSnlz9aHXNdF4dtphQUk8pk0f22B5Q8SZgdmp5POeWM 9Abm6C9dRBdpwtp5FiZ60MKnICG9KBNYAcxdAk8jfg5rYePm0pxfxVQWsKpo6pa7B6 7+6FE8fsWD2tZMGZZOwQEaIAQQZa94/nwmyejojMHLMFGOUUvedxzgc3opU6BMoMtI CBB/98x71/42w2yaxoOnKzgGDgitUbNa+nFq9pcWD23jaKQS0bAolkq4x9KBm4can+ VLpZ+1b4Rz9MoH9XmU1zctAVmfZXBtXAc7HyTn9yexg/UdWdgNbWfzBGI4+ZKeIJF4 rX/Q/kGNG9c5NfBggZI8MJlFjgWe0bub7UjFWpGNhnZ1oY7tiwCAbpBkWaaq4tSdUc wJ6ua0M93rSnOEFnnW254954= From: "Salvatore Bellizzi" To: , , Cc: Subject: [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: Tue, 23 Jan 2018 12:07:30 +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 that 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.15.1