Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp165872rdb; Thu, 21 Dec 2023 06:03:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqvZFowG9Tpy5nBvrvqjTEtQInP/MsOpoayK0HXbseO+lxT6nt2JR9BSiz4gpTAjGQr7aW X-Received: by 2002:a50:8701:0:b0:552:fc86:d417 with SMTP id i1-20020a508701000000b00552fc86d417mr4388469edb.15.1703167380344; Thu, 21 Dec 2023 06:03:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703167380; cv=none; d=google.com; s=arc-20160816; b=QmSXOmTEYMypE/6CO/oXAlJ238U53sPcX2n9lb/EBwMj1FIZqNuJJAefJnqAiVwZM6 yera9jsvDE3vMZxqIo2a+Orp/e7tPBi1ZNNqUUofIY2hkslewAhyCvgysUMIkWzSRy7e 4Mv/DoSQkMsctlo3MyyHMXM5umxzUnWa/3d/gLxwvl3Y/RW+62Ynua5/IaoZpK2MPbT7 GpJLfcZIxRJjmDzD2xt2EUc9BgKGwnfzklMxE/pNmkqvM3/ZnrqKwCrOUNW+kXEWj2TP 57/A93Osfz1kyRfitvw4EJkzFQhFPlD+nT5alUOQShLfT7e8FJM1jJ/QYY7BPEfsDFcC EHOg== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=1DyzKKpO4wmGcV+GfssQKSX3dG1JNX3oNAs/LhzTpvw=; fh=RcZSzOt3Z9lXLC4ghC2Gy5waKTkdZdWpfDSD1gszsPQ=; b=mmzu4oxawci44FEB4/ly0L8Zaa4C7NFIyUUCUKYmvTqUOF0G7uSVR3TCXcrLQOx8Cp 6C0W6mdAZU46gsrAIFSwgYODlnE8zKRxPj3zCCTFRE9I/SHWUdzoC6iLieNWpI+0uQJx TfjfvL4LgkRJExLIMPzK66BSynUIDf8p/lhOvM2/tufH/oOXZKeUGItbAfYmFxHiBFOS gkTEJ85V4Z2jP3RvdkfX3t9ZQoqKxUx1nQuI11e/bw/X+xKpbnBpClpdJXuHHI0BT5rj d/fYu0bXKid+77fCmq2S4l7v439Hvn6Sa/8dh11nXSZZRNNXgDfr1xz7wO9QH07IuBa+ 6HnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WC1H7ubj; spf=pass (google.com: domain of linux-kernel+bounces-8538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8538-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 q16-20020a056402519000b0054cb3786d5dsi878657edd.393.2023.12.21.06.02.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 06:03:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8538-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=@collabora.com header.s=mail header.b=WC1H7ubj; spf=pass (google.com: domain of linux-kernel+bounces-8538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8538-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 BF1B91F220E7 for ; Thu, 21 Dec 2023 14:02:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D5D879475; Thu, 21 Dec 2023 13:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="WC1H7ubj" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43F1978E95; Thu, 21 Dec 2023 13:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703166854; bh=sYVHTNGAkI5wRJlcobVBGFxVgolKAqf6ony8h16VMKc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WC1H7ubjC+75Wb6nkLy6w701MsHM2+M6kXPgQlaSl/MkxgyIZ1XLyN/fF7zBAdEx6 GaAhiFxbNgYn6c9RsIkPanR6PKFo9hZnpByhjMRvb8rwDoN0Qd6dmSvPgZ/eD/yqO5 pGTl34PBqH54v9QJ4ldvIcvdLhj30A5waonZcmHofUq4P89RF9Gzy6e8kGEmB6dSo7 WcyS9kF61E8HTWXMU3p4Y4Q94isGjqFeDqm3AHRIfKZaj+C3xJztxeUiI1jsrglH/9 1f76XhrD/e4f1XVWX4RIkAWZm/yjq9vDlnV2HvUMXtxQ2U2ZD9evwLEqF3kRX1c4AN 622p6VorMynIA== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id BBB003781F92; Thu, 21 Dec 2023 13:54:13 +0000 (UTC) Message-ID: <76e84d66-2ab3-4ec2-9e8c-644faf22e823@collabora.com> Date: Thu, 21 Dec 2023 14:54:13 +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: [RFC PATCH 00/26] Add thermal zones names and new registration func Content-Language: en-US To: "Rafael J. Wysocki" Cc: daniel.lezcano@linaro.org, rui.zhang@intel.com, lukasz.luba@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20231221124825.149141-1-angelogioacchino.delregno@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 21/12/23 14:38, Rafael J. Wysocki ha scritto: > On Thu, Dec 21, 2023 at 1:48 PM AngeloGioacchino Del Regno > wrote: >> >> ** This RFC was sent only to thermal API maintainers + reviewers on purpose ** >> >> As per previous discussion with Daniel [1], I've prepared this series adding >> a new struct thermal_zone_device_params, used in a new registration function >> for thermal zones thermal_zone_device_register(), deprecating and, finally, >> replacing functions thermal_tripless_zone_device_register() and >> thermal_zone_device_register_with_trips(). >> >> The new flow to register a thermal zone becomes the following: >> - Declare a struct thermal_zone_device_params (`tzp` in this example) >> - Fill in all the params (instead of passing all of them to a function) >> - Call thermal_zone_device_register(tzp) >> >> Moreover, I've also introduced the concept of `name` for a thermal zone, >> and set, as suggested, a constraint for which: >> - Multiple thermal zones can have the same `type` (so, no change), and >> - A thermal zone's name must be *unique*. >> >> This should then help (in a later series?) to disambiguate thermal zone >> name vs type, as most of (if not all) the users seem to actually be >> misusing the TZ type referring to / using it as a TZ name. >> >> Please note that this series is currently a RFC because it's apparently >> growing bigger than I wanted - and because I probably have to add some >> more code on top. Before doing so, I'm trying to get feedback on what >> I've done until now. > > And it is very unlikely that I will be able to provide any useful > feedback on this series before 6.8-rc1 is out. > > Thanks! Thanks for telling - but hey, obviously there's no rush, please take your time. Cheers! Angelo