Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5187334rdb; Sat, 30 Dec 2023 09:19:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcFhqAKHztLHQ2FcTUYig4AGCsA4UawN6AXLccKzfFLb7iQCXXhVsXcDy+HTvLWiE3G4t5 X-Received: by 2002:a17:906:14e:b0:a23:5412:c4a5 with SMTP id 14-20020a170906014e00b00a235412c4a5mr7190345ejh.61.1703956774613; Sat, 30 Dec 2023 09:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703956774; cv=none; d=google.com; s=arc-20160816; b=WUXZSimRg8Ytgfs/2sQmGa4Jtbc6X+a9f+ba13VoMqkjQajjOUnJw/NvUmwGg0rV2w SAKYyTdFSkHUNr/puikZCcZR6jSfxunAAx+ZCD2fNPVtg639GZ0IknRdgjBNye82o3VC c43BtYe4xlaloGv3buKbXoG5gxqUFP5teH14vzgewOTvR7f1pV6K+WBv2jFy4Qu6Kxhx HwpN8d8RFLKPDFRHTwjFw9+jrByPhisqL9oTCGsJKpfwUL215Xlb10QJtJgZvbxC8602 6jkVPGdWyjYzeipNIg7x4HV0rfNYRbbQ0v/gTgf/q+OncfjiT8qeorhIetL6TooHliNW R9kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Ou0z5S9NAcwFbUMBfuwYV1ryYnkMhf0pRQ3zZkqnDuU=; fh=mcBTSntseHKjcAJKWHyiReT+DVa76qiZNhi12q+o38o=; b=N40C7xtLoyxs2HEjKHtVkaD/WQ54U8lcq/3Q1cXGmwVDgBDat7OEr9GappxGXnJx5l /ZlZ62QQCSfrgnc+MJyDGsAdxTOcrCyb+DX8SsDjnFTRYzCYy3kWcUKKwDELh4wWityY ThnJJDfzHrKnPu+yMh6aNNI+K2VzUzNVybUiJdeXaiS28Kk1c9Fp+h/OIVdcq7TSHMZu s9VZ/OVxVXIl6yGQrLJ9sXyZSJXnFbHxXSZ43+1L3C/vQbYRrYMPFk2+eYe4FLE5Tsr9 DGBGMnc28eHv0Bx3DhSOxbzNhy0qdFWJg5Axm5BmHepp7Gl3DlZAOjIEleyl/1f6tdOC 7qMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CozxAllm; spf=pass (google.com: domain of linux-kernel+bounces-13521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gh4-20020a1709073c0400b00a26a96753fdsi7438474ejc.227.2023.12.30.09.19.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 09:19:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CozxAllm; spf=pass (google.com: domain of linux-kernel+bounces-13521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13521-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 612E41F21432 for ; Sat, 30 Dec 2023 17:19:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D9B6BA40; Sat, 30 Dec 2023 17:19:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CozxAllm" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 2FD92BA31; Sat, 30 Dec 2023 17:19:23 +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-f47.google.com with SMTP id ffacd0b85a97d-3367f8f8cb0so7803163f8f.2; Sat, 30 Dec 2023 09:19:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703956761; x=1704561561; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=Ou0z5S9NAcwFbUMBfuwYV1ryYnkMhf0pRQ3zZkqnDuU=; b=CozxAllmAgzfcPkztLRhBwUlBolCaDMOd2yT7SqYcghICbAKDNNebFYd5v0bMOlOdP tefXwq4nwD0gogZiQck5Xomt2CxUiv7GXY1v05G7qh4oo8X/sAliYLazsXAIgAkLWCAC QqhiHqWaxvzbNY8aoWG48Pcl9Nha7Dp575O3C22DW7JPLLao1WZ+SRSS4bdr69Tmnzqe 7ZpVGKuvN5p51GmS1/2TZiUYqA+O6RmAL97u0eGzvHR257TJgQrLj30TLDqPD6uX/OnL uKAat4yKJGeRvL9Qjq6KcsvBeVf5MN1uOPXOEXLtNG23uS3Kc2UXpyB+bvEqfi0Ha1qO Svkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703956761; x=1704561561; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ou0z5S9NAcwFbUMBfuwYV1ryYnkMhf0pRQ3zZkqnDuU=; b=EUhOe3i0oPZU1pAXW/orM0PKjy1cTk0DUUEsF8SBQZX3ZtTKdT3TXqhEVLDOjs+cQV /OzPEjHjqdO+YMmz/IoKCgY9rCTpykq3TSoX/vC9OAzl8llFjwb8uM1JPKSuObY5G/wb F4jheGlrQRmTbIOlQnMM6O1ECdbS/CnwXXNQcQ2qycheNJ4uwAdMgTuH2Vi/JZg9GGpF 6EvsKgiwz2zmSHK2dgEOhjaPnDlGNGmSfCV30aL0qR5SwOT6lHySyrIN0Ig+WPwNvBFt CZ13FL+Jlv6Dt24syVOMmBS0k6hyN+UlOMymUoPnEz/tKeLjPPv8voYoYxBx/tnb7Gj7 +jSw== X-Gm-Message-State: AOJu0YyYLueBSSb+nEgF0ne5u/IY9XbHqC93YC4kzEVFA1KWjMQW655D 3BZ0yIsj6nM3yoNhH4v57/g= X-Received: by 2002:a05:600c:a48:b0:40d:779c:d2b0 with SMTP id c8-20020a05600c0a4800b0040d779cd2b0mr1536597wmq.152.1703956760990; Sat, 30 Dec 2023 09:19:20 -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 t20-20020a05600c451400b0040d839de5c2sm2411814wmo.33.2023.12.30.09.19.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Dec 2023 09:19:20 -0800 (PST) Message-ID: <224b0db9-4fab-4a7e-b240-a2b60f06c52d@gmail.com> Date: Sat, 30 Dec 2023 18:19:18 +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 From: Maximilian Luz 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> <33a556e3-a7ac-47a3-a621-4db12dbac208@gmail.com> Content-Language: en-US In-Reply-To: <33a556e3-a7ac-47a3-a621-4db12dbac208@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/29/23 23:42, Maximilian Luz wrote: > 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`. Please disregard that comment. Somehow I thought it's part of the TMP subsystem, but it's in its own FAN subsystem. So all is good. > 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,