Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp107756lqr; Tue, 4 Jun 2024 23:43:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWveAi9JNKTfSEl76IgFp+eG6jxYgbN9ErFFDQghBNxqHOKyv+vxo0d0YB5wf6G+4s+JXjWsldScxcg6BsAgPocTaPlo/LHHbbfYZxRyg== X-Google-Smtp-Source: AGHT+IEewRV8Dyus0r4z6z4ceeHTvit81X/R1Cpi6tkHsBf0nbfN97BRk4HinAohEBS+EAgFTZoN X-Received: by 2002:a05:6214:4348:b0:6af:6ec6:2270 with SMTP id 6a1803df08f44-6b030a5c032mr17968276d6.43.1717569823144; Tue, 04 Jun 2024 23:43:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717569823; cv=pass; d=google.com; s=arc-20160816; b=Z5bDNNJbLs/ADGLdMyUpOAwQV8SxNyPoFShfKWrNw1otoZVud8XcDsVPHZtN0PNkNp 4aTXpItkV+AZ5KbOukPQNz8rQyn05U8WeMBeBqusmgAA34QH+pdMPxa1A0Bo2gZBg3qV a8HuozysQ2vddE0QtwbK5QKj6V+qx5ZNHtK1AZtQIWcF2/eEy7aGxwGptafgPYOLU9Ao qLcYl2JKbh/CatVbJb8Vk4sGnAaHcgj0Em1H50RxyX+VBt6dPeaBppleFuExusCA3j5N 3HIt64xuhW+SsLNF31lzyEbAnesNpHe5YkymT7X//T3DIPtaxec3pgt8XPuuake8+y0L kveQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QVWT4o4RJN6rHBWyrxsihWMYRQAtby4mFTEOZmR9bZ8=; fh=TB40nJxdONdf4WtVAnDt8DWbDrzJeBBXgHK/mPL12mo=; b=Z5kNOr8pvV/HAflnY05dZaJiEhAb/F34KJ2TWq7nDf9H2BGVf+fb8cx8PzWqjtMY8J K8KFC+SsmfLts7s2AEf0AtGwLfMPICUkLSnBoP2bVpPSDuyoIojzsTqnbw1YdJub1ky6 5MreAHP4Hd2PxtYIEdErFG+KQzT292WdOExIFsU27VXYgQS3W1HRYCQQimU1uIxmPXa+ jUon8/03DmCB87Zy/UCTkhrra+kxqrGgG1KkOJQm/hTZpncwFXEnUnbdBd7KVoTTXyr+ EKrdv8bZl+3j0XUyi4JKgXqmmoTT2yzKrfWzp22WNChvXx5WUvilxPQj31fU6BIPOyhb UrTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=OD9Cp+j+; 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-201812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201812-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. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b4152b8si1285926d6.374.2024.06.04.23.43.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 23:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=OD9Cp+j+; 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-201812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201812-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 EFC371C25634 for ; Wed, 5 Jun 2024 06:35:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36AE618C340; Wed, 5 Jun 2024 06:34:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jubnut.com header.i=@jubnut.com header.b="OD9Cp+j+" Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) (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 6EE5F18C32B for ; Wed, 5 Jun 2024 06:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.161 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717569259; cv=none; b=d5E/1ll2XjEJMF3nX1tFGPiwZf2a7mQqEYK73O3VtYipnEuGD6Lre1tCMOXskmrrUHNsWqT47xFPCwaOd76vD88AmBjOibEIsEt5xpeKMC+4l5rkrzZuN9oEfAB7soRlnX6pPbgvzvjSuEHkX6N81i2udIooQJtRgke+gbPQ/pM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717569259; c=relaxed/simple; bh=ruqDG+QNwILXYDQjZdx8DjPIl7jOpAZrddO/qf+cPow=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mkhyNJz3XwO+skK/XIAD0mP1zgm2L+c+PVAQoEGDb1YFfZPQIT59DTe7rrOVycaxNQDoqyhJDWqi+TSeR847edXHtsOYfDooRqOR8CFDFUkRUYA+YpnDvkQx8UtiurFvq6eYRHdqSUz39q+Q1W05dTD10+Ty77vz+Gp2DZPlmA8= 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=OD9Cp+j+; arc=none smtp.client-ip=80.241.56.161 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 [10.196.197.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-103.mailbox.org (Postfix) with ESMTPS id 4VvHjx1G4bz9snn; Wed, 5 Jun 2024 08:34:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jubnut.com; s=MBO0001; t=1717569253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QVWT4o4RJN6rHBWyrxsihWMYRQAtby4mFTEOZmR9bZ8=; b=OD9Cp+j+oYiI1npLa2sF9fA/R/eLbxx1cOSREITVCBCUUfp+T2KK9Vi8W7JzDNMpqmDF7Z evQ8iQSRvDne9UR39Pqjqnuc4oXX2vDbjqgbHl3Mxv15zNos3oTNouIAvjmhyAIZIcA9JW M/I0cDMFNvpNISrIE3skRPbVthuS8PbzZWykupAmKgj0UxAUpYnmLNoOn0QQ6pCnNR4Y8l 1gX0iNm1A/hz/yYWyJHwZotrWYZ0SRycklaGMDZyN9/cUkWSS2Yjh+0hMGC4G1vmFt3w++ I0EaQEJhNqyz2Iya8lcArailk830RT9RpPkdPryC9riJgMVWY2OwUhwmADmA2w== From: Ben Walsh To: Benson Leung , Tzung-Bi Shih , Guenter Roeck , "Dustin L. Howett" , Kieran Levin , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Mario Limonciello , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Ben Walsh Subject: [PATCH v3 5/5] platform/chrome: cros_ec_lpc: Add quirks for Framework Laptop Date: Wed, 5 Jun 2024 07:33:51 +0100 Message-ID: <20240605063351.14836-6-ben@jubnut.com> In-Reply-To: <20240605063351.14836-1-ben@jubnut.com> References: <20240605063351.14836-1-ben@jubnut.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For Framework Laptops with Microchip EC (MEC), use the ACPI id "PNP0C09" to find the ACPI device, and AML mutex "ECMT" to protect EC memory access. Signed-off-by: Ben Walsh --- drivers/platform/chrome/cros_ec_lpc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 5d9cc8df208b..ebe9fb143840 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -636,6 +636,12 @@ static const struct lpc_driver_data framework_laptop_amd_lpc_driver_data __initc .quirk_mmio_memory_base = 0xE00, }; +static const struct lpc_driver_data framework_laptop_11_lpc_driver_data __initconst = { + .quirks = CROS_EC_LPC_QUIRK_ACPI_ID|CROS_EC_LPC_QUIRK_AML_MUTEX, + .quirk_acpi_id = "PNP0C09", + .quirk_aml_mutex_name = "ECMT", +}; + static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { { /* @@ -704,6 +710,7 @@ static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { DMI_MATCH(DMI_SYS_VENDOR, "Framework"), DMI_MATCH(DMI_PRODUCT_NAME, "Laptop"), }, + .driver_data = (void *)&framework_laptop_11_lpc_driver_data, }, { /* sentinel */ } }; -- 2.45.1