Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp739704lqb; Fri, 24 May 2024 11:36:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNFG/DXbne8Sii9ur4flX8BUid9fKxyQKu/6tyBAWgDGkQh2JTRf27Ac8WEcDTGv6D1kGnsvSbvjxCuyR2cXJqPh3nMCsF8a/UWfxEYw== X-Google-Smtp-Source: AGHT+IG+2I2FetJhrqRgvodpouxSkPL6d4Clu5ydfbzPqHN7OMwXPCmyjHTTweYQrjMGtUt1NIip X-Received: by 2002:a05:6214:3384:b0:6aa:f601:ce56 with SMTP id 6a1803df08f44-6abcd126cb2mr28145776d6.57.1716575773302; Fri, 24 May 2024 11:36:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716575773; cv=pass; d=google.com; s=arc-20160816; b=D3WY5TbjgOKFhahPyIwUOOgHKRuRr+ISdgZ1XNU7d63sKmeQe93ETc47dUZ3VsybXw lQfpKhETdzu9/iUJzNnmjuLMu3dBi7Pm7aJgf3bTQjr9hMHWWLTt2nNL5S88eRgRwbYI qzMF2/p7h1EzhOP+rahuZJMcjSHQfQwjf0xpRx33luS+VcU4pGQWnkpII05HyL6GkFzY dqKN5NByaCr9HHofWKf7cXop4vkBfmZxqGcRZnn/4CNFGLzlpo0CSFBXRokKxNWJ9sLp 5KQobk3pZl2yne/YtFcGnRBoLR/NoaBkar4IqiEF0VA1Ei+sYLqK4V+J63a1aZnv8pa+ ZDXA== 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=+onRWGzx9O3X9IVjrTQAXaTDxgKaEx/1IU/4Sf9FiTc=; fh=rz0JTVdBJ3Pn6g1C60m/r9OPpmK5LlEZ6Q6qH6dmUkk=; b=1AFC1uaPJQ8T+cTFsh0yYUbiY4eiqX971r9DQY454K+pzsDQ9njnZK9Rk4nfbPafNT bzXNrZzaWThNjH07L4ZjKKhxCZk8/FCOSoXoS6/OwxJ8dGt4Lp8OOn1iz4dnrdUickXK AckMJvQihxXAaw7rqbk9oN0QP8+GtaUeeVBL1HKOeMsz2tZI+rFbnzPg8/chMfVawP45 Q/hSNbZg1SaaoOTeN8gW9+P61bIE/UC9RbvNTfpgSGJ0ZC4D+/+3Ep7ar0sqKms7XpTG trjROy1nO/hqJod/bCE7JIZiIPCoiN78qv9DY+nnHR9yOzJPM9EihGGsXg+mU/6vVtyU 93Cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=0vENYs8N; 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-189018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189018-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 6a1803df08f44-6ac06f4fd84si23373746d6.84.2024.05.24.11.36.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 11:36:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189018-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=0vENYs8N; 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-189018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189018-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 B2E9E1C2323C for ; Fri, 24 May 2024 18:35:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E44A83D984; Fri, 24 May 2024 18:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jubnut.com header.i=@jubnut.com header.b="0vENYs8N" Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 3E70A2E3E9 for ; Fri, 24 May 2024 18:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716575732; cv=none; b=HY+Q6Rc1TeEdW+OLFI1ddym1rMkKp+ORHCE4jz6BUZK037u1zWhymGgoY3L0jVtOekL/UTudSgOoNzpWAcpqxnVju6BvTQpMoNMkgFVtS2j8zEYl15SKek17MR8PXLJ+CopVF9tXS9ekmzXAloMrYqt5IbtvOZ1bublsaPU2sYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716575732; c=relaxed/simple; bh=KQpJGV/25wbn72h1ki7qnROH25i33ALjY/rSReptIzQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=N5fOf7454niOEvKditnG6KIjFlULGDE2ZWLKftj4XJaIPJ61LD2vO2kJyj0vn7WSTJn/GWSP4IOcQey0JARkrIcS8paq9Sb4IJfLDfTx6OfOGJQujtcINypAPOyejZDGlp9iRpOixKVpa8szYQzD7YO153zyQtbv++NA8r5zF/I= 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=0vENYs8N; arc=none smtp.client-ip=80.241.56.152 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 smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (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-102.mailbox.org (Postfix) with ESMTPS id 4VmDHd3dNkz9sdm; Fri, 24 May 2024 20:35:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jubnut.com; s=MBO0001; t=1716575725; 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=+onRWGzx9O3X9IVjrTQAXaTDxgKaEx/1IU/4Sf9FiTc=; b=0vENYs8Nv8g6QD3KYmRexNZz2uNfiIMJz4xdyxs8ef/bks4Sa4N3lcy5XtOrTh4e+wtsrV rcBAgzJEGKFUoAScBPxPPk5b9IKRpvzIptGvj+iPaSiTwmV8dk59WLPhu/PYxMCpz0qsjf YwgFQB5sIOqIxrxx9ObE3xfzADTjuLUGsmss2+8rUej2tM6kWgyib19/+yjlFW6SOltE5l M5XD6bFoJOozaeFsc9gOUsFNDOIDoYkAr7siKlRd92gdoPHEmwdM6EqtJ+oQrlidHiOX+e 5GAnyEjAXxXgB5a4IsNrz5j0D0s7EomEbwljXNeXEc2MNtSwL6e3V/ADiS41+g== 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> Date: Fri, 24 May 2024 19:35:22 +0100 Message-ID: <87cypb12j9.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: 4VmDHd3dNkz9sdm Tzung-Bi Shih writes: > From the context you provided, instead of matching "PNP0C09" in the driver, > it makes more sense to me (for Framework EC): > > * Mainly use DMI match. > * Add a quirk for looking up (acpi_get_devices()?) and binding > (e.g. ACPI_COMPANION_SET()) the `adev` in cros_ec_lpc_probe(). Sorry, I don't think I provided enough context. There is already a platform device /sys/bus/platform/devices/PNP0C09:00 with a companion acpi device /sys/bus/acpi/devices/PNP0C09:00. I think it makes sense to bind the driver to the existing platform device. 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".