Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1883084lqb; Mon, 27 May 2024 00:00:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWSI5NN37Wi97ZUfHQDeayUoGq1Ng06sShFehIIFD6N4V3gcxvqH15zjiC2dzMkpbyKI4HZbUP1Vwyg8jO6p4NJmTrn1ePNwHomcCFofA== X-Google-Smtp-Source: AGHT+IF8chqGeY9Eufl6LJ0K7wg0FdK+Ak7wPrLjQhGrZCFsxyxVPTl+aiZGaU9MV3qLhkbxja0Q X-Received: by 2002:a05:6a20:9790:b0:1aa:7097:49e2 with SMTP id adf61e73a8af0-1b212e02f1cmr11208615637.50.1716793258359; Mon, 27 May 2024 00:00:58 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8faadec22si5571316b3a.0.2024.05.27.00.00.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 00:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zLAcWfkI; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-190113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CB8C8281490 for ; Mon, 27 May 2024 07:00:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A401F17BA9; Mon, 27 May 2024 07:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zLAcWfkI" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.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 30E2A1426C for ; Mon, 27 May 2024 07:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716793249; cv=none; b=XYUA1mPaxxKfaTowrGFjSptM1M2x2u9P///T0D53xpQESiXhCWp5rs3CW/AaGTBsVApCDb9HXBMYh9y5mK7e31QAxlrKj1fakdaLXjelcvKF+WNWx28MQbrpnC6OnygJHxCzC1v8YF7DVnVhISll3l53gncUCdidgZ1L8515MEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716793249; c=relaxed/simple; bh=ZBjRRGQfKQl5/b05tZA4zkWp+A2rO2OQzVfREOizFgI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LfIVilkQZ/HhK2jh+sy4zAuy0MV4qkUC2kE99tSTLVwYKWuN7dowDArCNARw89zGiSKvYMhmoHDnfrclUG611amDKoGFLFLysxYdINA/KtU2TUeEVZZxDkj6AvEdS6Y2Yhla6A98bTA9ecfDj8eybKoscj2YyvUbQosku0AvFOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zLAcWfkI; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-57863a8f4b2so2379349a12.0 for ; Mon, 27 May 2024 00:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716793246; x=1717398046; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=O8uegtVJ9to2aA6iQ6J2dzPoiPz/JfrWOXr2v1sY4RA=; b=zLAcWfkIdisVcpIalxEhBdjbELZvQbQQl0atM7L7fEqmUBxOfRSIrcZwo8Zv0hsPDS G3V8iYZNraBFrjDAsZD3k0u4IUeVHm8SQOu2iWmJ9fiaZceZT/0SU87YJjRzTzrhu63L slwYDT1P4jGyHbMIqM+xYV985SJ8ESQCNX1MEqqVzm/r9HgGVHNbDZwBtQYmfRu976+6 zqAaFDWuYxZw+eAgzZINwHLcfxZIlHPKT2IyT8W5fAnvfqBH7tOPNUCJ2ikRUGbSpUmE 00c32/DJwy4BzrAt8VnVrVfErdcsGXZKk8UQHgPMuJa1MULMo+S9fS1J4ww665G3eMe+ whog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716793246; x=1717398046; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from: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=O8uegtVJ9to2aA6iQ6J2dzPoiPz/JfrWOXr2v1sY4RA=; b=Z6pJoc8s9rwZ3jcBUNKKaPrbz6kGkku4Fkdpwx5I+aGGUi9lsTLT3ial95PW7Y8i3U WJ/VrMs3SCMkqT+MmHnNp1xqQrMnqNX4w11sZja0h+pVOeWYz5QVqJNK/yGX1bjXBJx7 Y5/xjbOOzMhCh/GFH4bJaZkYxKdH/QjpAgpew7NSNr+uo8JlvmQZJY+Y6KxclQiUMAO+ rNT4I/+jEVNh+sSNoVClTipBmo6EebsBUPQ9DBfiwPzCi9/RPDm26WSfVlCkiLC86UEq 9SKkG1b08MHBaCsNLS0tK978XteMVxK3ByC5VOU/0+FF1xfZlsxbczfkRq4RZUknbF8q JEuA== X-Forwarded-Encrypted: i=1; AJvYcCVuve0TmZFFdnBU0v/1GzcI51V2j50YiD4fCqSMO43bdmEYR020mvG7I0K9e3t1DATFdPbagDWQL1b0Mk4MT1bw0qRxLIy9cnuC/Jx4 X-Gm-Message-State: AOJu0YwlMpoBJ7rR/I5V2xM4tokAroULAfqzmQ53vKlxZsLB/5OU/LXI FNYur9k//I8THsT4s0TxAHBY2WztCwWIds3neE+iOvnzYNKdjAy7WILDnjxyMDI= X-Received: by 2002:a17:906:adcb:b0:a62:8ee2:16c1 with SMTP id a640c23a62f3a-a628ee217f7mr385665266b.54.1716793246465; Mon, 27 May 2024 00:00:46 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c817974sm457554866b.25.2024.05.27.00.00.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 00:00:45 -0700 (PDT) Message-ID: <834e18c7-21b6-400e-aa61-a4f591027620@linaro.org> Date: Mon, 27 May 2024 09:00:43 +0200 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 v3 2/6] thermal: Add support of multi sensors to thermal_core To: Alexandre Bailon , rafael@kernel.org, daniel.lezcano@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: rui.zhang@intel.com, lukasz.luba@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240524143150.610949-1-abailon@baylibre.com> <20240524143150.610949-3-abailon@baylibre.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG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G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240524143150.610949-3-abailon@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 24/05/2024 16:31, Alexandre Bailon wrote: > This adds support of multi sensors to thermal. > Currently, this only support the get_temp operation. > This returns an average temperature of all the sensors. > If defined, a coefficient is applied to the value read from the sensor > before computing the average. > > Signed-off-by: Alexandre Bailon > --- > drivers/thermal/Makefile | 1 + > drivers/thermal/thermal_core.h | 15 ++ > drivers/thermal/thermal_multi.c | 332 ++++++++++++++++++++++++++++++++ > include/uapi/linux/thermal.h | 5 + > 4 files changed, 353 insertions(+) > create mode 100644 drivers/thermal/thermal_multi.c This does not really build... ./drivers/thermal/thermal_multi.c:249:38: error: initialization of ‘struct thermal_trip *’ from incompatible pointer type ‘struct thermal_trip_desc *’ [-Werror=incompatible-pointer-types] Best regards, Krzysztof