Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3995989pxb; Tue, 25 Jan 2022 00:58:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2xNqsn2In2pbsfGr+3IEXqE8RAz+GXX4tLd82h4tzx2Rt5HnLcV2vY/ItsXQfmr8Welc2 X-Received: by 2002:a17:90b:4a92:: with SMTP id lp18mr2533551pjb.152.1643101132600; Tue, 25 Jan 2022 00:58:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643101132; cv=none; d=google.com; s=arc-20160816; b=lLUnZgb6L9QFuxZhsevyYI55ld30p+Cs2q1yJ4N6Hil1sr64IYWDFNFffEIBlakaiE D6N1OpdTfyNnmRywajuNmCP5HRYymuPZ1BtXPgat1FJgtVas/6vVW/MyvwDGW9/FGFxH /vL6/Kw70Dcid3Ma/1Lku8ng5SSWqH65Zv4gwvnW8uUsJcRz23xedDlChkMPktO5zu14 QT0rj7zbDskc2smSyet41+E3J5FPHIkzr+c09icVqdBMVnh34RhI599IC9mE3gwVtqSB r7eUSEPZIG20T+jzrVaWNI5hxM2VZ4LMyPF9rDjVrSiH3sTEMxGl76cdxMJFRs31nFMS IJIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TUk8vRb1/TEpI4p3BEManRMgUagR/L5zFts1s2DKOAU=; b=JiHLjmw9zcAD4MzR4LDbJgrMqJo9OEOmPwskG55q/mX/AG+FoVD5PwmKUCoC10GCfz PVSrTHoKZ8tIJZhVGkH/7dZ5PCEC2ZxfrAmLFnL+no7HQJmHmeMqV7s+eYabhAEnfisn gIg0qYaDqpzD6JrWPl+aFqDJd8Rz2KgUh2nn48yJcdaeS2lDNQ8McWSPYHJiqwzwuBvF 1WjqO0tfK4vWeUEMbXqOdjPV7rtg/GxkrlEgFp7yoBthOAYHtgSqHdX5Kgb3N11be63p 0URDcSxZiJ8zJvrgkw8UyM2i2S37iLs4OvtA00wFsGy64EGxaWgRPNY+Fp30ljfo32eq kr4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="i0BK/0cS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si13681776pls.250.2022.01.25.00.58.40; Tue, 25 Jan 2022 00:58:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="i0BK/0cS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244722AbiAYGT7 (ORCPT + 99 others); Tue, 25 Jan 2022 01:19:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S254372AbiAYFOF (ORCPT ); Tue, 25 Jan 2022 00:14:05 -0500 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4265DC0612FE for ; Mon, 24 Jan 2022 19:42:02 -0800 (PST) Received: by mail-io1-xd2d.google.com with SMTP id w7so22170301ioj.5 for ; Mon, 24 Jan 2022 19:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TUk8vRb1/TEpI4p3BEManRMgUagR/L5zFts1s2DKOAU=; b=i0BK/0cSd5ql/xvy9Y2DcbaWQl5ucael2ytCi27aBvxFMayD9HBIEsOJLSGcqtlV+w QBI1KgX2fbtxohV7KwVaGWzNib17c208bD/Z4FSLc2mwhP6d1ueS20DTqNqQUIaUCJ74 XOypZqctX3ZZAL6j2Sm2cnpX1HcOUHxiKQOfM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TUk8vRb1/TEpI4p3BEManRMgUagR/L5zFts1s2DKOAU=; b=steqKtAWOfBqoUpSi8xn6mPE+GUELFgqwAGxDKkzvQwA00AHXUpqHECmY0nvNgyDh7 rE+wGjDVbmkWZziGQa6hKaDYlNS+/q/oKsdpJjSz/3c3smVLG5uKUHHwE0BBhZlB8THu /6zLuUskCzC8aGTheFTyLAy8s3NFFFV207/91q5erZTvLlV6frqlZLA/eUZcXfTJByjo Wm1B3aX7BkITpzbZ5T1Zshnkn6HGXmBsiQkIkxBGKvSkd39Is076CIeXo6C1vv+SajqJ yS5af859feRO7v54ne3TQYaJ63WpGHe6H2WYrhQvqCq6PW5T56NGl2shYiktqXd4j6TF hhWA== X-Gm-Message-State: AOAM531LUbmREs3cximNMLEf+8JLxlDYHezakIWVEcNtgxXSQmwpHwMg xJD3NrQGvbCqrWc8M7RfoqN5Imb/T7ZUy8b6diawbA== X-Received: by 2002:a05:6638:3009:: with SMTP id r9mr8180868jak.262.1643082121708; Mon, 24 Jan 2022 19:42:01 -0800 (PST) MIME-Version: 1.0 References: <20220105031242.287751-1-dustin@howett.net> <20220105031242.287751-2-dustin@howett.net> In-Reply-To: <20220105031242.287751-2-dustin@howett.net> From: Tzung-Bi Shih Date: Tue, 25 Jan 2022 11:41:51 +0800 Message-ID: Subject: Re: [PATCH 1/2] platform/chrome: cros-ec: detect the Framework Laptop To: "Dustin L. Howett" Cc: linux-kernel@vger.kernel.org, Benson Leung , Guenter Roeck , Tzung-Bi Shih Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 9:35 AM Dustin L. Howett wrote: > > The Framework Laptop identifies itself in DMI with manufacturer > "Framework" and product "Laptop". > > Signed-off-by: Dustin L. Howett > --- > 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 d6306d2a096f..458eb59db2ff 100644 > --- a/drivers/platform/chrome/cros_ec_lpc.c > +++ b/drivers/platform/chrome/cros_ec_lpc.c > @@ -500,6 +500,14 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { > DMI_MATCH(DMI_PRODUCT_NAME, "Glimmer"), > }, > }, > + /* A small number of non-Chromebook/box machines also use the ChromeOS EC */ > + { > + /* the Framework Laptop */ > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "Framework"), > + DMI_MATCH(DMI_PRODUCT_NAME, "Laptop"), > + }, > + }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(dmi, cros_ec_lpc_dmi_table); > -- > 2.34.1 > >