Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp744340lqb; Fri, 24 May 2024 11:45:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7G8vvaShCHiT6XTHtUv8g3d6FBsxDbH4cdwTDVa+49e6lUsIeSn8eEahSJp9EqIqTZjN5CxCRkSrYYDHB4SJ9+BMd7ben/OCnAY6pCA== X-Google-Smtp-Source: AGHT+IFq0rYubf2OnUgYh/BI/u2WLKau8oJ5fttchBXuBxe5rqyopizCEK+fbrDe7Zh1XJyh2Psm X-Received: by 2002:a9d:4809:0:b0:6f0:e381:77b1 with SMTP id 46e09a7af769-6f8d0b8924bmr2909171a34.27.1716576355410; Fri, 24 May 2024 11:45:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716576355; cv=pass; d=google.com; s=arc-20160816; b=gDJhJlcqE1k3dGG4d4CWoivs1nP3dWTwg0onpluaIptcMWrW7TzNkUYfR7cvD0gR9m RaazDpNKI3eORM6CIvgSP44f8pMh/kTmIzXwHWNsJTe4ogTY/6obAzh+fZC2lwo0ty9e xNb+HtWGyWHHy5DYtvtkj0mKZA8S+jX22+IghmOgq0G7PWHeoO6/sDw9VWDPFe0jeiT3 g8OuCKFP0Qf7KpYFwdK1nxUH4H40W+/2JmYloXxppzjP7JcrvTTMW/z497wZVwzdUE9d 6gxRhEWYBYBOGCuFl+0bnYBXeaVziigzYZ5eknESg5o9a7U9nwosN2yvaPrmUFbOWviV eOIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=rsOPZ72Of/AX5AiLQAAdRGqcGHzkGYM86yMIsD5ORcU=; fh=59Z1tvoyDAAItVTbUBKR+Rhd56OdjEqu3aywARxclgU=; b=PFDE04PUFfhP/8+YTGrKFNmMNTVP5X0mgtFvVEX4q27pUsE/oFCk3YTo42k2JI/AW6 XF0dkP4y8NKtqzE8BhR51BvEgG1gXi+uVdsuA84lzYkkE034eUVJjn+FUm382ypAXYsB IiP+0nxzVUdpyRvtBusua57RRpAHcW8DYqU4FRdLeNGy2t5FnCWtvg6WVvuzH4roHet/ 24yPk69vfkohH89kaUIrg0JPatTaex6apI91uJzBOHFLNOr0+x88xzKNgtOZ9aTMr8Co /6u1pWfLB7+zJy6oIpQhWipVjxHQ3M+VNiCAyIES1WIW78KxSygSAS8egyTbuY89Saix TNrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=ocYoPQaO; arc=pass (i=1 spf=pass spfdomain=jubnut.com dkim=pass dkdomain=jubnut.com dmarc=pass fromdomain=jubnut.com); spf=pass (google.com: domain of linux-kernel+bounces-189024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jubnut.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17bcffdsi23202601cf.67.2024.05.24.11.45.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 11:45:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=ocYoPQaO; arc=pass (i=1 spf=pass spfdomain=jubnut.com dkim=pass dkdomain=jubnut.com dmarc=pass fromdomain=jubnut.com); spf=pass (google.com: domain of linux-kernel+bounces-189024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jubnut.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 201181C21CFD for ; Fri, 24 May 2024 18:45:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBC853FB81; Fri, 24 May 2024 18:45:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jubnut.com header.i=@jubnut.com header.b="ocYoPQaO" Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 352571CFB2 for ; Fri, 24 May 2024 18:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716576349; cv=none; b=YihQ4pmaM5OipNt+MAow95gXta7pt3Z2h1CfccPn+F9aRhcRvBYXcKd3SYvVeaED4lRZjfTDMPaLh2OMDjKI3ttJ2WAjQwXIeembuFFhXDpAJdWWf6WXOnxQMCzxSOXR7mrC/vANxLiaAmopKKLEa2JeF1Z6EK4Gbg7w4pr9LYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716576349; c=relaxed/simple; bh=rsOPZ72Of/AX5AiLQAAdRGqcGHzkGYM86yMIsD5ORcU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AoR8WVY2Q9DgKrtqokPH1ypUDJxs5zFGwiJKA1SXaVt2Dzx09VKL5/InkfiSBAr1kfk8Ak1qf3RnljpX1kuSMz3NEosLTYdHBckogpD6sZolD0NWXbeLWcPxueCCYj3JTd2o7kCgFmfpaw46DujHlH/sxvM7OvhBp5BKl2kiJa4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jubnut.com; spf=pass smtp.mailfrom=jubnut.com; dkim=pass (2048-bit key) header.d=jubnut.com header.i=@jubnut.com header.b=ocYoPQaO; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jubnut.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jubnut.com Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4VmDWX2Js8z9srt; Fri, 24 May 2024 20:45:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jubnut.com; s=MBO0001; t=1716576344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rsOPZ72Of/AX5AiLQAAdRGqcGHzkGYM86yMIsD5ORcU=; b=ocYoPQaOk5lfpB7UZDTIul2WxLYHpQdttxNbbm/rVBZMJYQu5iODZUIzdtiyQ0YrsgHpi7 eD8PJSud+RTg/rHvXlhQyajK7t+vdHxstfmcRoiOc/6JtuDXVLfAG1/k5oPqnPPYdypinS 1OIA/UvdCYjyhnoTAHBRAO6MChqTSyv+DmUJnREPS1KmUSqmNUqYtfarmMB+Ezy2Qg3tbe 5JZVbnMiIMrzXDz2/hGbt1a4CTEA9qYL61iB+s0O1UE0+OKS2U6G7d/y6ChkXrJvjaOl0n fw0jU//d7CMctREsvi9ODx2I3LrP07XAbQqUacq7X/fxCqtjagZKJJ75oMsQZg== From: Ben Walsh To: Dustin Howett Cc: Tzung-Bi Shih , Benson Leung , Guenter Roeck , Kieran Levin , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , Mario Limonciello , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] platform/chrome: cros_ec_lpc: Correct ACPI name for Framework Laptop In-Reply-To: References: <20240515055631.5775-1-ben@jubnut.com> <20240515055631.5775-6-ben@jubnut.com> <87jzjk1ibr.fsf@jubnut.com> <87cypb12j9.fsf@jubnut.com> Date: Fri, 24 May 2024 19:45:41 +0100 Message-ID: <878qzz1222.fsf@jubnut.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4VmDWX2Js8z9srt Dustin Howett writes: > On Fri, May 24, 2024 at 1:35=E2=80=AFPM Ben Walsh wrote: >> >> I could add a new quirk which provides an alternative ACPI match table >> to be used instead of the default. In the default case the match_table >> will contain only "GOOG0004" as before. But in the Framework EC case the >> match table will be "PNP0C09". > > My biggest concern with putting PNP0C09 in the direct match table is > that it would cause cros_ec_lpcs to be loaded for *all* devices with > an ACPI-compatible embedded controller; it would likely print an error > and bail out early on, but it would still be unnecessary on 99% of > platforms. That's exactly what we're talking about: how to *avoid* putting PNP0C09 in the match table. My original idea was to put it in the match table, but only allow a match to proceed if Framework EC is detected by DMI. My new idea is to not to put it in the match table *at all*, but to provide a new match table if Framework EC is detected by DMI.