Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2204454lqb; Mon, 27 May 2024 11:06:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmcqJMy7R+Kx/tJhVZqUw2Nne88EEOAGXDxQpaCIfTtb+rKwsAZCv+XVjmp9TT6WT8/ks0LEIfEeBP6cjHXk6ngCesSS1IozIwUXxtPQ== X-Google-Smtp-Source: AGHT+IHQhkeG99412ANnf+nsr2eVFkb6/AKzMdGJJ0VWu/BwWZuDrAnxYDPbXljv2nMl5Bj9brMS X-Received: by 2002:a05:6e02:2196:b0:36b:837:db0e with SMTP id e9e14a558f8ab-3737b2828c1mr166908995ab.1.1716833216460; Mon, 27 May 2024 11:06:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716833216; cv=pass; d=google.com; s=arc-20160816; b=05x2SVX+FKFrKWJVxVR3byiJ2oUzesLSiSmab/yq3IbvC31jFNZ39gpZyHitZKfzOz PRysyYIZ0qZsSmlqe+VoU3teufiyh4mlWrVFD6zHIB7j3ywwTOR6dXVceKeic5zBC6ip 1VzGNUE6i0nX/v/MK/NFrz7EUWRD5Jx5nM6MusQ82x8F0cm29p1iM92aQ26f2cWmDd5D acXMfg9BJkLa39CGQXd65g7veQot9y2piyXsD+YvC/fSESnfLmvXupP07ln486hhCvhc 34Nwm357tL35ZJeTq48Ui3ofLR34qyVktmYJPWNIDVgAdX5W1S4EpspE7vIbGwdI0MgP 0VqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=dRJfzl+erb4rP0hvVohvOtSHuuZdGY2XJTVv3TRXHpw=; fh=rz0JTVdBJ3Pn6g1C60m/r9OPpmK5LlEZ6Q6qH6dmUkk=; b=Pqdq8/OrnYlDu9CK0cO6T7zATbfYcVzi+z49Rc9AQJZvykfvcFZplf7ZiQpYVkK+Q3 jWdZIrjMrQlVuyULA1xZ/cEbUJSxgkoP9UWZ+EHW2eHFNSf0bGAYWaRtHikuwkq/X/Ka DY28KEL+/eDzsRDWUDOSjRlt/Vp31p48NyuoP1vHemZ86mVVgq44ud2+pz+dh1NMDgkX 4Af5SfLh3gr4xb0BVOaMfYhz1I5flASMz77ubzC4CXahB8IPLaxndKl6ofRmHjp8ek3M 4o5fjL1ovR6nSrkgKuFdx6p9sG47DzdopgVM1YNQox5XD81YRam0+qODlk46WoBt/XQj 0tfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=m9OAgr6I; 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-191313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jubnut.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-682288e78casi6777453a12.513.2024.05.27.11.06.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 11:06:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=m9OAgr6I; 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-191313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191313-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 137D32823B2 for ; Mon, 27 May 2024 18:06:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2932D15F3EE; Mon, 27 May 2024 18:06:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jubnut.com header.i=@jubnut.com header.b="m9OAgr6I" 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 F2CD91D53F for ; Mon, 27 May 2024 18:06:46 +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=1716833209; cv=none; b=ZXHbEdzBHeNcPbe/AFbQRU6Y1UBX6/XHhn2uwVjxfOGkUJY748tOnv45Ldd9IMiea6RUm09n4SzgwNHRcFKzYRLML3JgvcuyblMQXcU2/Jt5NAetFudPszP2Rf8lomtluVVy0OUxoCdYV4RinsxZyTKTeqc8UqZEAbrkZz4Zb3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716833209; c=relaxed/simple; bh=pzZeJfyni1NMNSarctd7XFqTYT9P+RBcOOvt+eGWGOM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=TO5xsEY0MVcMVsGRGVbREECOIYQnjIQvloNn+d153vYLZLERrepJB12r64oIjJ5vujQBovDEG+VxvFy7088Elm9F6GOeyH8/4uk2xFOkBljdgffQJVYJGAkRV3uMM7d4xqLm6oIRHbSL2JBlg7hHqWDQIH5KDpxmgkHk8RhXsjY= 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=m9OAgr6I; 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 4Vp3W71TQtz9sS4; Mon, 27 May 2024 20:06:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jubnut.com; s=MBO0001; t=1716833203; 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: in-reply-to:in-reply-to:references:references; bh=dRJfzl+erb4rP0hvVohvOtSHuuZdGY2XJTVv3TRXHpw=; b=m9OAgr6I2btEfKm+dEm4KPEFkDsJQk3ETNE69MsZ4cXYyp4S31oODCR+g0zBWrfKx/eIDC G52/WLXF575JUJH6bP8c6qz0JPCi/dxVGLyX+JVurdzsQqmUNNRPFe9f40VgyQwC0nStp8 Vu7gZAoezq5hGQe0XUaDkCdN4Ly+uKezDu8AltOo0QR26gJv27+Hi5pr1ldoUZK3n0l+mR z3VVV38XMLmARwzDojgg8lQ9RNFC+n1sgxaF6+r9QBC6N9qal0bkucfsOmoxTbtQ1nj6Su hPaf8VeYbLxnpkcVdWbzvAa8K2PkGah2nri/ValvbCP6qsyg5eZp3CIn6oxrlw== From: Ben Walsh To: Tzung-Bi Shih Cc: Benson Leung , Guenter Roeck , "Dustin L. Howett" , 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: Mon, 27 May 2024 19:06:40 +0100 Message-ID: <877cff2kpb.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 X-Rspamd-Queue-Id: 4Vp3W71TQtz9sS4 Tzung-Bi Shih writes: > On Fri, May 24, 2024 at 07:35:22PM +0100, 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". > > I think it doesn't work as the current quirk is handling in > cros_ec_lpc_probe() which is after matching. I was thinking of a new quirk called CROS_EC_LPC_QUIRK_ACPI_MATCH, and putting it in cros_ec_lpc_init(), not cros_ec_lpc_probe(). Do we have to do all quirk handling in cros_ec_lpc_probe()? > My original idea: would it be possible to get the `adev` in cros_ec_lpc_probe() > via any lookup API? If yes, it could still use DMI match and get `adev` if > required. That works; I've tested it. In this scenario we're not using the existing PNP0C09 platform device, which means I can't look at /sys/bus/acpi/devices/PNP0C09\:00/physical_node/driver and see the driver. Is this OK? (Note that ACPI_COMPANION_SET() doesn't fix this. You can use acpi_bind_one() but that seems more like internal plumbing).