Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1383146pxb; Thu, 28 Oct 2021 02:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP1mfMEJDfF5Hotma31vEZs9Xs31dqyf70KEwE8aoIIH8iGfYPxrI44V5k0L143Lwhbhs6 X-Received: by 2002:a62:844b:0:b0:47b:eb1a:4afc with SMTP id k72-20020a62844b000000b0047beb1a4afcmr3158131pfd.73.1635413873804; Thu, 28 Oct 2021 02:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635413873; cv=none; d=google.com; s=arc-20160816; b=Zoh4ftsBpm+tos4XHQmTCd/I5i8o+sgE/CQbJqpvoya4wufyg2QNFD/l8Bb8sbxwrf tpeykYUbOCoFk2Kms9t4OWAVwjQbxUfFMXyy5Fp+AZOeV4PqbFecl0hCSir549dA8qjI 7fr7Jg6zGnzHr/knPcNs8sJJrwiyIpopMhk9AEk0Ie5siVGK/+dal0U4OOx8Xvg+iWyp N+TEXXmabTCK4x8Nvosm88dxmrKU1SmCFOeobp9pa0MAFeY7tFm9nqCgM59xT/LGioHr J0afTl35bjvOD9QfOtrPKQOCdcXhKS+PCtwbQRLATBFEXFIFmuxKB/rpQ1NyMUgg407W FPuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IGr0evJpq0ehfSf5Z/rdSKDkY1U6PFL75WswHuxKJMY=; b=wMiQFXZ1rUM5Tb/DSZLZooyHrMkwUKmOi7/rWutI5XAFhRwk4iMkUt4f/k/QG4qzqr 4lwDJH/TBRd3TVdPMcuXbkY4pqY5aBOjv2JDKwd45W/y1ilfEPuBHkjtOGXI6uZq+fyp wyyMLDfvpjrswrdd8HdU64tFnEtu4MMafUUGbbWvIw8MIKQCJrzSAPofEhqQ4QhBFahZ 6CBh2pXYsL/U9b4HJk/XHKWuGnPbwDgcDbCpncZLNbmMgbg6fG21wcCzzmvTw+Qif4IZ H1fGoWZfLloKMrhyE+yljafs2yNeXcxHbUVPLtqM5WM8IhShvPpwP2kTVaNYLohp7Gdc wFPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WCiG/5Oq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id on15si3449466pjb.126.2021.10.28.02.37.40; Thu, 28 Oct 2021 02:37:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WCiG/5Oq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230126AbhJ1Jhc (ORCPT + 99 others); Thu, 28 Oct 2021 05:37:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:54432 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbhJ1Jhb (ORCPT ); Thu, 28 Oct 2021 05:37:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635413704; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IGr0evJpq0ehfSf5Z/rdSKDkY1U6PFL75WswHuxKJMY=; b=WCiG/5Oq2bZ6FtcRgAQ4fw/09K7p4JeSL4QvWTk/LRsb4TYHw9bkmBVNSC7xwv5ViOSqNw m8mv7glpXKPeqJKDJ+qT9Kf3oohZWk/aPFObZSFC72DrlnsjG9YkHTTOaCDTCSorW2rGrQ wgp3TBzW4VzbKxqwMuNQtIHrlEGULgw= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-563-SUWT3tvqPRyb7ukylRqowg-1; Thu, 28 Oct 2021 05:35:03 -0400 X-MC-Unique: SUWT3tvqPRyb7ukylRqowg-1 Received: by mail-ed1-f72.google.com with SMTP id s12-20020a50dacc000000b003dbf7a78e88so5047921edj.2 for ; Thu, 28 Oct 2021 02:35:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=IGr0evJpq0ehfSf5Z/rdSKDkY1U6PFL75WswHuxKJMY=; b=EY2e30ReGOAyAiNiPhegajccFWpSUxPZw34B+p/xK5RBHhCzNq6LTx4/FrV2ZQieUD dVxKxearcmcT+AdJJM8i/FBlhUjT+2psuWhCjnaTXPss3nYKOg78yv34mwBEOroQUPvB xfxv0BDCg6UvprGO75+l1CZAzm3jewwhoIgsj7dY/7Ihkkf9s9SQPrlEhBAugaOB0nE1 yWHqDR/g+GEAZrD9wjSborkkjX189SXC1+jRrcsKDZfUzMWhxHJA1u+Jiyzr5/ykIDnH WJxOU7y+xXJ0AbWo6TJweVsiPIGC3NUCIQVpJTSO6LjoChpBUGFLmLCbYMnrCOE8k3zi z4gg== X-Gm-Message-State: AOAM533RZOk5hpMblvJNO6W9gmCKsdkSpS56VZ5GFGcR5BXw1uT6zIsV oMJe+ZLFktUv3FAZaJuCUATCRyvUw9LPe0l5kLAUk6olHbIIPX/CjsoecW6zhx3prxWfPJk+/1A rJb8ewbfwrTy7j+ytaqXtHZ+J X-Received: by 2002:a17:906:4fc8:: with SMTP id i8mr3868524ejw.342.1635413701692; Thu, 28 Oct 2021 02:35:01 -0700 (PDT) X-Received: by 2002:a17:906:4fc8:: with SMTP id i8mr3868506ejw.342.1635413701541; Thu, 28 Oct 2021 02:35:01 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:1054:9d19:e0f0:8214? (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id bn20sm1095335ejb.5.2021.10.28.02.35.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 02:35:01 -0700 (PDT) Message-ID: <15aeb61a-8dae-deb4-8e7a-f31ce5531cf6@redhat.com> Date: Thu, 28 Oct 2021 11:35:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] platform/surface: aggregator_registry: Add initial support for Surface Pro 8 Content-Language: en-US To: Maximilian Luz , platform-driver-x86@vger.kernel.org Cc: Mark Gross , linux-kernel@vger.kernel.org References: <20211028012845.1887219-1-luzmaximilian@gmail.com> From: Hans de Goede In-Reply-To: <20211028012845.1887219-1-luzmaximilian@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/28/21 03:28, Maximilian Luz wrote: > Add preliminary support for the Surface Pro 8 to the Surface Aggregator > registry. This includes battery/charger status and platform profile > support. > > In contrast to earlier Surface Pro generations, the keyboard cover is > now also connected via the Surface Aggregator Module (whereas it was > previously connected via USB or HID-over-I2C). To properly support the > HID devices of that cover, however, more changes regarding hot-removal > of Surface Aggregator client devices as well as a new device hub driver > are required. We will address those things in a follow-up series, so do > not add any HID device IDs just yet. > > Signed-off-by: Maximilian Luz Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > .../platform/surface/surface_aggregator_registry.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c > index 2e0d3a808d47..ce2bd88feeaa 100644 > --- a/drivers/platform/surface/surface_aggregator_registry.c > +++ b/drivers/platform/surface/surface_aggregator_registry.c > @@ -228,6 +228,15 @@ static const struct software_node *ssam_node_group_sp7[] = { > NULL, > }; > > +static const struct software_node *ssam_node_group_sp8[] = { > + &ssam_node_root, > + &ssam_node_bat_ac, > + &ssam_node_bat_main, > + &ssam_node_tmp_pprof, > + /* TODO: Add support for keyboard cover. */ > + NULL, > +}; > + > > /* -- Device registry helper functions. ------------------------------------- */ > > @@ -520,6 +529,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { > /* Surface Pro 7+ */ > { "MSHW0119", (unsigned long)ssam_node_group_sp7 }, > > + /* Surface Pro 8 */ > + { "MSHW0263", (unsigned long)ssam_node_group_sp8 }, > + > /* Surface Book 2 */ > { "MSHW0107", (unsigned long)ssam_node_group_gen5 }, > >