Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4812347rdb; Fri, 29 Dec 2023 14:42:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5/STrz+DSRqYhsb/ITf3oIZ26ubG0y9n9Jb5ZjVgNqmLNVu83UJnj5izMYDEwT+q4c2fk X-Received: by 2002:a17:90a:b30d:b0:28c:65ee:3c37 with SMTP id d13-20020a17090ab30d00b0028c65ee3c37mr9319085pjr.9.1703889755702; Fri, 29 Dec 2023 14:42:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703889755; cv=none; d=google.com; s=arc-20160816; b=A2k7bedelbmExJgmwFdpom/53Vy3dNbWmjVhMRxBhdqhZf35NyFPtBUBs1K/1xjXKy pTEbVnERtSabJaNPPHvOoR+7+YMY3IPc7DT7U30W6Hrp+fxemhoTVzH1XGgpakxwViPL OKytxmSKLa6P+isG8WMWQYpXqDF7sgVgbMV33gDAe2/gAYzzgkQKfG/g9/YONW/rywd7 5/nez6oBQQpc22vGItjZXuqU25oGsnipDbVbiG8bS259RRKSU+cuzD93kxJpoD20G1Ju WmvmJwAU1MTfV1kYzqd4YHydwmecjOs5vjRIOKW10FOV3yRmPys8JotSKTxG5nLkH531 2/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=96Hd5IFgkK/TcrBu0MMVF5Mj+dQO1oOnTc+wyle0UDM=; fh=mcBTSntseHKjcAJKWHyiReT+DVa76qiZNhi12q+o38o=; b=D9Ztz5VZmU8XT5NRULFPB5pM3+oL0LGNkh6MY9PnVDTSZ3vT9SBysBNkVoGckq4CWw OCGbo+B38J5csxvvLhfspX1wwn5FPQcAk7UuJUfgCMr3dA8eAUBt7rX71ScaD1YEYX0Z 0febGtoZZn96WqWCM4yD8+uIxNwJt4IpFCl31YRXHArdlRSxjrNLNE39+hWXD+6VoksD kBAGjo6W+LJwJ8e1iogdpX2S0GQY8bC7ojSFFnjF18Bo0vD1DCR9G1a+jjnzXctkpQzE Fm9HEuyWhC6mUUtP4frXKx3niz+kyMRhqQqm+1RBGThHjmRVUf3mQtZizNJRQ2yl5+it vyEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eOJSc5MV; spf=pass (google.com: domain of linux-kernel+bounces-13263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z92-20020a17090a6d6500b0028ca62c1ba5si3011180pjj.181.2023.12.29.14.42.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 14:42:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eOJSc5MV; spf=pass (google.com: domain of linux-kernel+bounces-13263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7428EB223E8 for ; Fri, 29 Dec 2023 22:42:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8A2214AA5; Fri, 29 Dec 2023 22:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eOJSc5MV" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D8E614F61; Fri, 29 Dec 2023 22:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-33686649b72so7254238f8f.3; Fri, 29 Dec 2023 14:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703889736; x=1704494536; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=96Hd5IFgkK/TcrBu0MMVF5Mj+dQO1oOnTc+wyle0UDM=; b=eOJSc5MVPYvFH0VxFK8IyUfeELDWSstJnQINHKxEMFB5Rgob3xAzoLpBP33CRL31BF ihTooz0zXQDQLH2QBTkige45vXI5PZVopjyNCtK9uOk5VMrTeUuEoolgcODNkQenTLTJ 7rIu5kcrDgiBRZV/rBuQFhNOR23xJfO0spKt9Z5IJz2oILpYN5GgT7EwTnXobMAfPBk9 dLNyQki3GaNoYLDjgetIlLUUDDO7gKQvvIkmruyGHB0G2TmqiaAevqi6bCaSSrbXNfgx 7u2npBNFe+HagY+utz6APauLxq7Ehhj5Lhe1W2ktgQ8VeMgdzOuZbwyz8v7cPcF0RtAN LICA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703889736; x=1704494536; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=96Hd5IFgkK/TcrBu0MMVF5Mj+dQO1oOnTc+wyle0UDM=; b=o0i7LwmsgUAaJ3vTJ3ZYb7SVQeVUuuOJRzYgpXIDrBlxtk6JA8lCcj9g4olqqBWD1b wn24R0PI+g+z1kHAeimrTqxPfo3J+1oVDF/AXne5Y45tDbymisiN+x/GNRf6S52xCC32 C9sX17q7wPevDbbkQe77rInByGfIBs6p7tRa05P/CYbKa4HFJV7UWNKW1sKgQFl8IQFn RQLY8tZdYAey9ceJyxSpPm/xxD3i1XyTz+rk+z+n77kN+La2kY6D9WGQiKe5WH6iqSQe gCR7MzGSqnsQQnOZEfDKm96lSYaYFtV6H4K9Jf16VWGqdnHEmB+9MjnXpEVrHUjyBQyI vNsw== X-Gm-Message-State: AOJu0Yx7NM094T0jHviqNOAI+w2jZliG+FfpHvfuh+i/ophw1KFXD6Gr gA9ZO6SwNr/9DQWENlck+G8= X-Received: by 2002:adf:d1c8:0:b0:336:f20b:4b45 with SMTP id b8-20020adfd1c8000000b00336f20b4b45mr3829021wrd.40.1703889735597; Fri, 29 Dec 2023 14:42:15 -0800 (PST) Received: from ?IPV6:2a02:8071:b783:140:927c:82ba:d32d:99c1? ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id o10-20020adfeaca000000b0033677a4e0d6sm20078775wrn.13.2023.12.29.14.42.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Dec 2023 14:42:15 -0800 (PST) Message-ID: <33a556e3-a7ac-47a3-a621-4db12dbac208@gmail.com> Date: Fri, 29 Dec 2023 23:42:12 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] platform/surface: aggregator_registry: add entry for fan speed To: Ivor Wanders , Jean Delvare , Guenter Roeck , Jonathan Corbet , Hans de Goede , Mark Gross Cc: linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org References: <20231228003444.5580-1-ivor@iwanders.net> <20231228003444.5580-3-ivor@iwanders.net> Content-Language: en-US From: Maximilian Luz In-Reply-To: <20231228003444.5580-3-ivor@iwanders.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/28/23 01:34, Ivor Wanders wrote: > Add an entry for the fan speed function. > Add this new entry to the Surface Pro 9 group. > > Signed-off-by: Ivor Wanders > Link: https://github.com/linux-surface/kernel/pull/144 > --- > Changes in v2: > - No changes in this patch. > --- > drivers/platform/surface/surface_aggregator_registry.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c > index 530db4db7..b0db25886 100644 > --- a/drivers/platform/surface/surface_aggregator_registry.c > +++ b/drivers/platform/surface/surface_aggregator_registry.c > @@ -74,6 +74,12 @@ static const struct software_node ssam_node_tmp_pprof = { > .parent = &ssam_node_root, > }; > > +/* Fan speed function. */ > +static const struct software_node ssam_node_fan_speed = { > + .name = "ssam:01:05:01:01:01", > + .parent = &ssam_node_root, > +}; I would prefer if we could keep the subsystem prefix for node names. So something like `ssam_node_tmp_fan_speed`. Otherwise, this looks good to me. With that changed: Reviewed-by: Maximilian Luz > + > /* Tablet-mode switch via KIP subsystem. */ > static const struct software_node ssam_node_kip_tablet_switch = { > .name = "ssam:01:0e:01:00:01", > @@ -319,6 +325,7 @@ static const struct software_node *ssam_node_group_sp9[] = { > &ssam_node_bat_ac, > &ssam_node_bat_main, > &ssam_node_tmp_pprof, > + &ssam_node_fan_speed, > &ssam_node_pos_tablet_switch, > &ssam_node_hid_kip_keyboard, > &ssam_node_hid_kip_penstash,