Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3681986lfo; Mon, 23 May 2022 11:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfT0P181fB+pLHnSoUrzK41jqjnIRXKp3jTNXXJAg3QguQtb80eLCsh5j1m8ZHr1f3IgEE X-Received: by 2002:a63:441e:0:b0:3fa:247b:29de with SMTP id r30-20020a63441e000000b003fa247b29demr7935010pga.467.1653329799132; Mon, 23 May 2022 11:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653329799; cv=none; d=google.com; s=arc-20160816; b=uNe0v5xGVBGaQt+cP3Fdu7gVXoCqvaZg7TSVbfzV0/YeY+3FoIvdbk0qqokCvuqfTr 80k3bHpiCfmKYi5938dJm4/DHnSuCHPQ5coUQA9fhI2ix3mM0jLdfClqOEQ55ht9AImm jKGveibMAsPE8hkEPiztrmCE7p/ErBW36jSxQ3ex+v/cxOMPcAl+DAj2aR0zS7O33JSL c+hCCBjRSqG33KiH8lrvK7sYeZFC7s67fYdlUVcCJRySV5xmeS09PLioMIxrCrOEXkfe KywPX/KicW5UruJKuU8s7tzXmsV/Jj1tD1Jp283wYADC49MFwMPAajMHTuKD4jkjSjH+ gRQQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aNaEtJRnuAYeLlYOTsd8LelRqwjblONZB9i+019lepc=; b=bUe6kBm1TDxTUFWKJnoxFr3IFTu5v2hEzldUX9OZ5pm+6T6wvBjCgYQMSu+MKvOJk6 0trYpRkZp0bMlC0RjSlBmn3a/Qfu1lVzBIYdZztREEF4cYY/Zxn7qCC3R2iqR5P5xuKt 0G6pXUa5zs8dXDpulKxdqaFUziNZ5pH+j97EbIT2LwEiA/qSNhy1m9dxRMORd9qcMtk9 j0mrPXDC19uik0CegBWLRxh0N0XdzTybfeh9q2dRK3JQT3axO+ziHh0fxkrJ7Y83XXuh NheygoJvkRMLFI4ofc3jtPwxbjcYFdG3SVrt0fY9bYE+YedNwvgjRxPxiU64a3J63rRZ /FMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JspTKfYA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id lp5-20020a17090b4a8500b001df6b71c925si17326448pjb.188.2022.05.23.11.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:16:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JspTKfYA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7F7F0396BC; Mon, 23 May 2022 11:15:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245039AbiEWSMW (ORCPT + 99 others); Mon, 23 May 2022 14:12:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243711AbiEWRmZ (ORCPT ); Mon, 23 May 2022 13:42:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10ABA5D198; Mon, 23 May 2022 10:34:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 22E69B81233; Mon, 23 May 2022 17:31:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59C28C385A9; Mon, 23 May 2022 17:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653327059; bh=CVclP0CVYd+Kst09m8hEBA7IByOo7/Fm5SO7C+br1ow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JspTKfYA1DLtskWe1L1vtQLYZkOGz4uQP1SQKGyKqUbupu09pOgoAKORh3asj1WVN Bc5o+rw/jKvg5crtgwZirWS5Ji2m0NP6oWMGOfG2C6HT/WlpRXzOa6HUMZPHS/sHaw bj15D3oD1oDsGVE1cR2B1mievRqG9hIKtXflzQqo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maximilian Luz , Hans de Goede , Sasha Levin Subject: [PATCH 5.17 144/158] platform/surface: gpe: Add support for Surface Pro 8 Date: Mon, 23 May 2022 19:05:01 +0200 Message-Id: <20220523165854.135126878@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165830.581652127@linuxfoundation.org> References: <20220523165830.581652127@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Maximilian Luz [ Upstream commit ed13d4ac57474d959c40fd05d8860e2b1607becb ] The new Surface Pro 8 uses GPEs for lid events as well. Add an entry for that so that the lid can be used to wake the device. Note that this is a device with a keyboard type-cover, where this acts as the "lid". Signed-off-by: Maximilian Luz Link: https://lore.kernel.org/r/20220429180049.1282447-1-luzmaximilian@gmail.com Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/surface/surface_gpe.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/platform/surface/surface_gpe.c b/drivers/platform/surface/surface_gpe.c index c1775db29efb..ec66fde28e75 100644 --- a/drivers/platform/surface/surface_gpe.c +++ b/drivers/platform/surface/surface_gpe.c @@ -99,6 +99,14 @@ static const struct dmi_system_id dmi_lid_device_table[] = { }, .driver_data = (void *)lid_device_props_l4D, }, + { + .ident = "Surface Pro 8", + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Pro 8"), + }, + .driver_data = (void *)lid_device_props_l4B, + }, { .ident = "Surface Book 1", .matches = { -- 2.35.1