From patchwork Sat Mar 4 19:46:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Luz X-Patchwork-Id: 64267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1081616wrd; Sat, 4 Mar 2023 12:43:18 -0800 (PST) X-Google-Smtp-Source: AK7set8o+FeRZ/jGwcCeYSw673Ac5fTjKzN/jZVpcb2bsQIFQRCptWb/p0R5u/SHus7Yml3G1Aey X-Received: by 2002:a17:906:32d9:b0:8aa:bf4e:7b2c with SMTP id k25-20020a17090632d900b008aabf4e7b2cmr6523369ejk.21.1677962598684; Sat, 04 Mar 2023 12:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677962598; cv=none; d=google.com; s=arc-20160816; b=CGqa87DSPkt6dgNqrrRB1v/QQOjQepfYnYUEpvOihdUSSsckdMBMSFhMMisGXuJORu thB3qkd1u7bZUVdSs/+1F+gfTVukGV1lnbsGkpcnf9d5df/vLXhv/4kz7jKPWn1LCWwM hJp7y0e+xz1QbKMzEHtwE8T0oTWV/F0yr2sVoMow1RWESE5J+k08uR3nffZc4bKsEnef IXnIk8HSbRsrL/GYrBXPZDMkKUIuOo40Dg2aOwTt+IN84C0mmaNUOJAu6o3+olBBRZJ/ K6kF6EyVjBmMgOiOhZVJBzM9jMDPk0kB54kCEwi4rnc03nmuKsdwCIa7IKiwoULY0rmV HgQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lJ68f/XfFKM2MgP6LnaIRfQLo6GnMqWHhH7pP7brWGY=; b=X5uV9/5bxCzLYCFmtDdreKzqVcxJMTCz/GlBJ1gSEhUUgJZr5pRIbRt/U5NGhRLNC+ 8cK6karm3iM3zTTYr9NXmkWYgpqlPSGI1+obT8s4pj2mM1JK1JcSp+jj+3tyezcKCkao CAY9jOGApvn91gp+TpuTL/KkTgvo3gDQYVlyuKGBGAKe1iTXkpN9fMVLQtJId5HsYNLf wmfbfXY87XXJH/+cE2p0z8KFo5u8IwOyj4nm3C2zFf2fzOG3bm7wPmttPHPLluG/+u/k gqom7wmcHwouQ/7h2Ggx1k2pWz/5u9y0Tf887tLJ01UwHqkilJ0yKZgbRbOdy3wlNzYO DqRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="i47dN/lT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa28-20020a170906edbc00b008bc108463desi6436467ejb.632.2023.03.04.12.42.53; Sat, 04 Mar 2023 12:43:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="i47dN/lT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjCDTqv (ORCPT + 99 others); Sat, 4 Mar 2023 14:46:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjCDTqq (ORCPT ); Sat, 4 Mar 2023 14:46:46 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B0111B56C; Sat, 4 Mar 2023 11:46:39 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id o38-20020a05600c512600b003e8320d1c11so4308900wms.1; Sat, 04 Mar 2023 11:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677959198; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lJ68f/XfFKM2MgP6LnaIRfQLo6GnMqWHhH7pP7brWGY=; b=i47dN/lTe7BsroWGjOvJ38KsaW5HypdPDhTcpqnH+r6BvlaQ7V0eKH604fdAVOYdaZ VVjUSXQPs2WPEy64a7LQmRqaZ7w93onxAnWoZtMm2IEXSuGlOiGQIcurrt3jRThjZhjV 9Tdo2PyjcPDxkcqm7fcWbJ3zU1cBN3AOuGTvh26QcEdratHRXoxj7ocd/U6RUPKM0Ol6 w5RqswgKgd4/yA8wEORwwUQeVUYP67r6ZB2wNsOG/VavW4JUQ2A28gp8jh5LTqpCu2mV HYX22iEtHfNUsC5hWFrPolsJDfyfZAPI/mUaiQcYbel3wqyejMTuyoCDtnps5Mxur7ag H1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677959198; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lJ68f/XfFKM2MgP6LnaIRfQLo6GnMqWHhH7pP7brWGY=; b=nsNlrccnDGJv6XSr7uphmvvk+obbDJbXaKCouqlPqUwvLZZszQ/vub2xil0Wki69WJ rS9lnAdkP+Lqp2oNGOqIKZK2c1JYj4bk9+focgs7UWt8Dpg/tS+tfAoGuGY2/lj8gMMj 0lZ3J8LkntNyamt868nGiJR5JJC9Z8E39LOTEvtcgmGbV6TCGrl+Kc1ee047e/NNUXzq Xq+Zud3oLEcZ5qfn8hZAWd8Qt4c31QOOXEntUo46Bpx5NSEsAvDKBbBp9uJyXoB06RGD 9MSU5RGn73X8R9b7s+35k3mLFtlZScGe2TUQLJA5ZFa0tKPgaDRj9o3qVPEvOHRFA8rh UgGQ== X-Gm-Message-State: AO0yUKWqLJlU42JQz3mE03EwSH8QCZu9QhS2xmQYF6coZILIRyoD4Tva 0QgX0mQZ8+c3DJjAxEAPmWY= X-Received: by 2002:a7b:c451:0:b0:3eb:2db4:c626 with SMTP id l17-20020a7bc451000000b003eb2db4c626mr5167106wmi.38.1677959197991; Sat, 04 Mar 2023 11:46:37 -0800 (PST) Received: from xws.localdomain ([217.138.207.232]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003e2052bad94sm10696067wms.33.2023.03.04.11.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 11:46:37 -0800 (PST) From: Maximilian Luz To: Hans de Goede Cc: Mark Gross , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 3/3] platform/surface: aggregator_registry: Add support for tablet-mode switch on Surface Pro 9 Date: Sat, 4 Mar 2023 20:46:11 +0100 Message-Id: <20230304194611.87770-4-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230304194611.87770-1-luzmaximilian@gmail.com> References: <20230304194611.87770-1-luzmaximilian@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759471310095276265?= X-GMAIL-MSGID: =?utf-8?q?1759471310095276265?= Add support for the POS-subsystem tablet-mode switch used on the Surface Pro 9. Signed-off-by: Maximilian Luz --- drivers/platform/surface/surface_aggregator_registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index 296f72d52e6a..0fe5be539652 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -305,7 +305,7 @@ static const struct software_node *ssam_node_group_sp9[] = { &ssam_node_bat_ac, &ssam_node_bat_main, &ssam_node_tmp_pprof, - /* TODO: Tablet mode switch (via POS subsystem) */ + &ssam_node_pos_tablet_switch, &ssam_node_hid_kip_keyboard, &ssam_node_hid_kip_penstash, &ssam_node_hid_kip_touchpad,