Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10158657rwp; Thu, 20 Jul 2023 15:56:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEeYO/d+HkrjYumKJh6E4E7qJYEUkrKVj4CShCRZPt0hxzAAdsvMfzZM4OP6ZJxZbPCVR2S X-Received: by 2002:a17:906:21c:b0:98e:419b:4cc6 with SMTP id 28-20020a170906021c00b0098e419b4cc6mr142033ejd.70.1689893781018; Thu, 20 Jul 2023 15:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689893781; cv=none; d=google.com; s=arc-20160816; b=CjDOPGzddaOi+MPt1bxg35HoU169B/kbTr+HxcUb5MdHrzxzvFi28fSulDqA17nLA3 CxO9FHaEgdvxZoYgImHxAJfJGvAd4SiEkk4m3+3O60S0amrW3wvTPhnv7MtOPIlwf206 xGwCkNr5GwPaU2HWifjm+8mcQ8+S1uQGoSntzzO/FnvjxuIfAQeh7jOuIbrxqlWEE4K0 RXwUTrb6N/2HYIxOAN66jCIUUflLc8+gVLA2TLotvl3KmAKVqheXN18eb94KJSxueWZg 9h2GranceArII8ob0cgUvV1ddAItRh92kYQQAYEXisTFASAs1FW6cA4OXNxCsN1Yd+YT Lpog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=hDwVNaCwLkj+T7Bsxj7osVe4IR5sds5yMUqYgBnFTec=; fh=Tpm6AzrMcZgAFfhyNy27m1jYT+mcll5IQu9TOs+ElIo=; b=hHhrXtbky2nYOfCg8BuBCz0/sfFpYQI4ii0fWvMDhRkxNCjBnWiYpQuDYyphIh5XcT QMguNNtssrY1mfAqRppbYptBdj3mGmQqUZ6GNzuF38uV0xeMh2Xlq6B9sK/GRHwdU7Nc CNIBKI1CISPKtRQRcPbAjFon4hruCz2Xi6jLMJJvOaOn2LO4Z0SIGOjcy9I3pgMV1uf3 eTMLONn2NSxYHKQqNb0cNy68o8snrfYI+k1h5G2lNKmU822PEnrwvuztl6O0HuMdfGwv VJT2UZ0OP5h5c+irn5b35KhKSWk96YFDjWzDGbS28VH0uyzbysdB/moc87OzLytVKbHr rsDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RrpAlqUm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a1709066b8500b009889a249ae6si1305110ejr.1026.2023.07.20.15.55.45; Thu, 20 Jul 2023 15:56:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RrpAlqUm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbjGTWhY (ORCPT + 99 others); Thu, 20 Jul 2023 18:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbjGTWhV (ORCPT ); Thu, 20 Jul 2023 18:37:21 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA05171B for ; Thu, 20 Jul 2023 15:37:20 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f9fdb0ef35so2142438e87.0 for ; Thu, 20 Jul 2023 15:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689892638; x=1690497438; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=hDwVNaCwLkj+T7Bsxj7osVe4IR5sds5yMUqYgBnFTec=; b=RrpAlqUm0mabMdrW7xEK50l1GNF6iN49ca5j+EY9M/WgnCWiXIvFzGDu74LWDP9eVd hjw6NTvs9gFiwvKY3UTHybpIibi9dafuXULKm8ypdzSxXXKRlE5F5Kr0QdG4qc0Mhc3t Z1+AbQPZUhtokYv1qL/qSmCi195Raf3yd0xn1gyGbhFxuJs5oToufDDt84iI+mEHt25k vi8txd/Tfn/QhlWKD5cUAmnVFv9BnXXR4j0UNlEY+dgvO7FsQVaV5//uD2W2ic8Tmm7a E03K+sR9xFjetBixY26Zd15iuY39Q92GfWofhIXeQ9oCTPG2/OrKiJZkapn7K/IOYCAe RL2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689892638; x=1690497438; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hDwVNaCwLkj+T7Bsxj7osVe4IR5sds5yMUqYgBnFTec=; b=IWBRp8r/iRjEP92WsrZ3U5IBABi3QaR0wKKT/AEnHhY3uAoPk/eWaKwbv3TcyjfseH VRefdinUlwTBSRauLdxgiTWLXNWi9RuPbzH3OYC5/cGST0M0IXnGjPdhrBVKjG7DljxX IcwxuKb46/E9GIdP0iEy/DRkuzoB9rF4OVDanNZOxdZx/sHlJ31iGwcnePID3fkOO+pv xrWr2adnHxaU8ZTvyiN/rsFQni5beKqHF5Hz+t0Z1Ixj4VN2CNsOMQ5iHtwBsfI5uHur Un/s5veUcMvWendIJFnoiK/f3+RzMEsFL38wyVYjWHtBciNFAYd/Ng64UEHSmlvGdOVJ gMng== X-Gm-Message-State: ABy/qLayox2L62e7Qss6s/5PKng71AHaja+RRwVkcgqmN/6eNWe42JPu HdNhJr6NrqxauXiOH+wGYeww/+eP7Ly32vj/ X-Received: by 2002:a05:6512:3da7:b0:4fb:52a3:e809 with SMTP id k39-20020a0565123da700b004fb52a3e809mr75159lfv.28.1689892637988; Thu, 20 Jul 2023 15:37:17 -0700 (PDT) Received: from tora (83.10.92.232.ipv4.supernova.orange.pl. [83.10.92.232]) by smtp.gmail.com with ESMTPSA id v13-20020a19740d000000b004fbab4b7d45sm408232lfe.67.2023.07.20.15.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 15:37:17 -0700 (PDT) Date: Fri, 21 Jul 2023 00:37:15 +0200 From: Alicja Michalska To: linux-kernel@vger.kernel.org Cc: robbarnes@google.com, lalithkraj@google.com, rrangel@chromium.org, bleung@chromium.org, groeck@chromium.org, chrome-platform@lists.linux.dev Subject: [PATCH] platform/chrome: cros_ec_lpc: Add DMI definition for post-Skylake machines running custom Coreboot builds Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ChromeOS EC LPC lacks DMI match for newer machines, which use "Google" DMI_SYS_VENDOR as opposed to "GOOGLE" in older models. This patch adds DMI definition for MrChomebox's custom Coreboots builds, which we (Chrultrabook Project) are using. Signed-off-by: Alicja Michalska --- drivers/platform/chrome/cros_ec_lpc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 500a61b093e4..6ac993be4eb1 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -533,6 +533,14 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Glimmer"), }, }, + /* DMI doesn't match modern machines running custom firmware */ + { + /* MrChromebox's firmware */ + .matches = { + DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"), + DMI_MATCH(DMI_BIOS_VERSION, "MrChromebox-"), + }, + }, /* A small number of non-Chromebook/box machines also use the ChromeOS EC */ { /* the Framework Laptop */ -- 2.41.0