Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp784705lqb; Wed, 17 Apr 2024 10:32:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHfsU0qt5C+0xDzv94OeHIm1f07xrPHL5Axu0YiZoLEr63bgwlHJ6t18Kwhb0PIABsVENKHe0Yc2Trz4Y/YGUdDX5xOYUJL1eFGPxq8A== X-Google-Smtp-Source: AGHT+IGMVNieeeNQEZYN3Yd2Q3u6nJy2GzVqvMw6HElUA8Sqtv1lJSTOH63b9ToGrVnzDJ2sqHPI X-Received: by 2002:a05:6122:a26:b0:4dc:d7ab:7f16 with SMTP id 38-20020a0561220a2600b004dcd7ab7f16mr385609vkn.8.1713375151097; Wed, 17 Apr 2024 10:32:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713375151; cv=pass; d=google.com; s=arc-20160816; b=sHhGEI0Z+kdwCByWXYVCxgrReoS6E4viObrNFJ9IVPd4C2rxZvgHk6msJQ0csiGYwq sBmw+8cokvxcCwNad2B1uMh+GeaTSo8fJRDoJnbHujIa+uHDwagLrTX3c5fk7tVLISYy 0GfFv4uXCFzysdZJ08grHSXBPSpaOTtNF3htocBKyb0wxoIa1/cdOw/9goTQSBgSlIZm a+br0fgeH2l/FHqwGzlrWyrj20aVxpjcJucqb8/oBEloAzN6IhrYY45XzvSaOtJgk15U u6Wr91kS4effSgeHUT7qXAR4IF/7sN3JNIkqbd3tPQtuHwLCWmWA70CBxXpS9Ni5Me7h FVmw== 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:feedback-id:dkim-signature:dkim-signature; bh=SYwB9sIOejL6LQqFoRXrJ2e291n7cnRoAR//09q6alM=; fh=X6w54C159tCvovsw2PIdxi7Zi5cRh1P/Zi5PNPKiSKo=; b=tuWhs46r5Jbapecs7E8XYjUGjcYKcNptc9ped1OvW/0GmJRhPeyzT+84xtBBImSdM0 KPF/z66p5CB4EUZm+5XbTsw1GqH3yrakZYemGWCJLCEGB2le1KV8ek3M0WZr48LsyQNm phs8t1ctkiJ2szeM/RJLJxOYKonKEQRyuUSUyyLFGyzCCN0hOTFPAEszFi1ahz+q5PvR INbsAcXnHJ7+MhgDB0O6rwsWF+quKqA1AemNuyu9bbhTAjlZbxpjquXqdJovo/Rf2uY2 nnKCdXO2roGfaD0jqalN5+/+k7L2tTXaaRTms9x3RtoewABKuLSLRpPtkJ0J/XW2lqzk A25w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm3 header.b=gHIjITaq; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Sq6Ra274; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-148995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148995-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v12-20020a0561020f0c00b0047b9e35bca8si876156vss.479.2024.04.17.10.32.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 10:32:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148995-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=@squebb.ca header.s=fm3 header.b=gHIjITaq; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Sq6Ra274; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-148995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148995-linux.lists.archive=gmail.com@vger.kernel.org" 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 88D3D1C23B58 for ; Wed, 17 Apr 2024 17:32:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F4B1172778; Wed, 17 Apr 2024 17:31:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b="gHIjITaq"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Sq6Ra274" Received: from fout3-smtp.messagingengine.com (fout3-smtp.messagingengine.com [103.168.172.146]) (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 9A78217167E; Wed, 17 Apr 2024 17:31:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713375099; cv=none; b=BmOQP3GXQdDOizQTJD2ldlsQKBRe4GT8mc1cbUvdVB/gPj1gQROsYQRpjZf2rxWNdDeBKVq1FlupZhWB6RbwnsVW3c4qHX4rW8W6+McRm1zT7FjjegsGrH6niM2IOioZxW0z0thsc3OLR4Wcb4so+PhWk6ZaLvJMjum95VMOFts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713375099; c=relaxed/simple; bh=0JAHJiBAOZAwICYmCaHzyi8YM+hQp8n1NB8LRVAqEtQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a/PDfYdPb/vmi2R7HlVF/RYby2+N8b+FWdYxziS7MHgarJJOvwmbkQ40TapmJkjGdYLPhjFc1k6He6Txt1WkKf5Se6dsra8b0SoX/Toe4HuAc+Kpa0KP2s3K7+b3/U+hVwj12yIYBGmJlBEyTNJH+5mS8l5H9D7TzA024wrNiic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca; spf=pass smtp.mailfrom=squebb.ca; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b=gHIjITaq; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Sq6Ra274; arc=none smtp.client-ip=103.168.172.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=squebb.ca Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id A1049138018C; Wed, 17 Apr 2024 13:31:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 17 Apr 2024 13:31:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1713375096; x= 1713461496; bh=SYwB9sIOejL6LQqFoRXrJ2e291n7cnRoAR//09q6alM=; b=g HIjITaqGmgxzjcSsqZ5eMyEO4d79+zifVs0fL2PAeHvSkVHBfFrB6HBXpvLvtv4I FsbmSdwGAgwlQTXVhUfjgsIKGoOMgigxk+oBoDmKT41WgXKhCVE0C5H8IC1/m7l8 gINOx4wmNcBOecRC76AfOHkO/N31qPWOinFo/udBbXyG1HzRUsHO1nabXFrMqOp7 a5yEKzZAd9dSALhRPI/rgt3cZixoCVwEc21MySD9Wb4jgjFnL9r1HKXiZx+9zW3W kiAuZptu5TrKBYZKW3Cj/OoxWcOKbKG+ZDdfQ4L6tHMoXVYj+y7pCNbLJRYjLUr8 q79wX5mghooSpGC6rnH0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1713375096; x= 1713461496; bh=SYwB9sIOejL6LQqFoRXrJ2e291n7cnRoAR//09q6alM=; b=S q6Ra274NNPz4HODcAH1XBmQKuvlVCPdm5yrDbo//JzgGs1XAZO5L0s3KFfeIlCy+ uOJOzfGvnNSR9T11x+GEe5llQWetx/45U9OWTT37tBJ+Rs6J8r78+6DznzT/cHo/ efFhy0IUg8nsyN9ZnMT5j2NuD9w6t/uolI3RlZI7tp4KmilIbsm+KZ7OajOSacec qM4Q/d8T3CwkLZVe+tsgBCCJztBNO7N3wuFTXu3DxSEVZJI1kOeLF+8Qj1gSSfVZ dzOJPHHAl6Th7W/sk0yeSW5MMfWKINNURZp5P/5SRGVr6dhSKkB+oVCuYU3d7QLF 8JqbVHsjS+kH7yJBMiRiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejkedguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecuogetfedtuddqtdduucdludehmdenucfjughrpe fhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforghrkhcurfgvrghr shhonhcuoehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssgdrtggrqeenucggtf frrghtthgvrhhnpeeftddvjeefleffvefhgfejjeehudetteeigeeugfekhffhgeejudeu teehgfdvffenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhroh hmpehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssgdrtggr X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Apr 2024 13:31:35 -0400 (EDT) From: Mark Pearson To: mpearson-lenovo@squebb.ca Cc: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, hmh@hmh.eng.br, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, njoshi1@lenovo.com, vsankar@lenovo.com, peter.hutterer@redhat.com Subject: [PATCH v2 3/4] platform/x86: thinkpad_acpi: Support for system debug info hotkey Date: Wed, 17 Apr 2024 13:31:08 -0400 Message-ID: <20240417173124.9953-3-mpearson-lenovo@squebb.ca> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240417173124.9953-1-mpearson-lenovo@squebb.ca> References: <20240417173124.9953-1-mpearson-lenovo@squebb.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New Lenovo platforms are adding the FN+N key to generate system debug details that support can use for collecting important details on any customer cases for Windows. Add the infrastructure so we can do the same on Linux by generating a SYS_VENDOR keycode to userspace. Signed-off-by: Mark Pearson Signed-off-by: Nitin Joshi --- Changes in v2: - Improved comments on keycodes in init function. - Filled in missing gaps drivers/platform/x86/thinkpad_acpi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 6d04d45e8d45..a2f21e958d39 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -1789,6 +1789,10 @@ enum { /* hot key scan codes (derived from ACPI DSDT) */ TP_ACPI_HOTKEYSCAN_NOTIFICATION_CENTER, TP_ACPI_HOTKEYSCAN_PICKUP_PHONE, TP_ACPI_HOTKEYSCAN_HANGUP_PHONE, + TP_ACPI_HOTKEYSCAN_AMT_TOGGLE, + TP_ACPI_HOTKEYSCAN_CAMERA_SHUTTER, + TP_ACPI_HOTKEYSCAN_DOUBLETAP_TOGGLE, + TP_ACPI_HOTKEYSCAN_SYS_DEBUG_INFO, TP_ACPI_HOTKEYSCAN_DOUBLETAP, /* Hotkey keymap size */ @@ -3340,6 +3344,10 @@ static int __init hotkey_init(struct ibm_init_struct *iibm) KEY_NOTIFICATION_CENTER, /* Notification Center */ KEY_PICKUP_PHONE, /* Answer incoming call */ KEY_HANGUP_PHONE, /* Decline incoming call */ + KEY_UNKNOWN, /* AMT_TOGGLE handled in driver, 0x31a */ + KEY_UNKNOWN, /* Camera Shutter Switch, 0X31b */ + KEY_UNKNOWN, /* DOUBLETAP_TOGGLE, 0x31c */ + KEY_VENDOR, /* System debug info, 0x31D */ KEY_PROG1, /* Trackpoint doubletap */ }, }; -- 2.44.0