Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7128911rdb; Wed, 3 Jan 2024 05:42:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRBj0mrGx2g6kQZ8UegEmg13lp6KArVW2iX3BBjMvc0wESS19X0eZeJg3MRQPEQ3O5LOyl X-Received: by 2002:a05:622a:594:b0:427:e9d6:ac1d with SMTP id c20-20020a05622a059400b00427e9d6ac1dmr1315871qtb.69.1704289361202; Wed, 03 Jan 2024 05:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704289360; cv=none; d=google.com; s=arc-20160816; b=G/4vtbL22kR8AgnZzFv9YGrmxKuBpL9ogvgQ9ZDnSDZX5LVUsbt4J0D30Q+eWtQ6Lp tiu2nz+2goFyrmOQvIeu1rUpfBrFuMejJZYcBi3e4nLn0U061E1Vj7caCY0bsft9OwHH 6phP9ejyfpCRnHhpebNLnsFls5xUG9GOr/p/8M34B+NEUpJxBklYRNs7Y3ZJwztlHK8r 6iKl8XrDWGtVVnwGsWLzp1AHGQAgzPJXhGL+0hgCrbzSKpCaYVePAEnsIAOhqf/nuxIT fRKRPylDYnYF5e6bxIxA7C0v+hiwLJwQ9ixOXsNhmNz13ibqNGK/DsQoevI5rkkMLHF5 CB8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=5yn09ffYZPc7aBLokf+bfH+Tett0Gy39mn9i+Z/bJZY=; fh=bfzlNEJtrqEI9UdykJZvTHnx3c39QnQS+aq6PxxwTu4=; b=S/7Sxkn+YDeIHmeHKro0GdAbsAq8zkkgtCm2zosKR4Cz0eWPAmJvKDRuPzENb1eY/V ULuVRh9o0/Sx98NoTH3WqknixwNizrjiGc+GsyM0xksyFFUmjNPGrjxQZjjYypMHYGME /Z8xbVXIQCKLEy/KI1BR7PVc0j4tpzOLuUNDLp/W0LY6W2dIiR5E1/pNZdSM3QTDYx6H fSWCAY6yL+xKORFCVhTfJvik8xEhu6SBN6R1+xTYwN2ylh4FQILoFqEBj+Lp6P3io8yO HGOWd6HTkNbpsqUy6dneqzL4q5tzHXxKlxzN5TqqdROza7LeE/BUZUsYvj6RYPOxXxuQ oBbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHMvbDq3; spf=pass (google.com: domain of linux-kernel+bounces-15607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a6-20020a05622a02c600b00425814dc80fsi28677796qtx.333.2024.01.03.05.42.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:42:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHMvbDq3; spf=pass (google.com: domain of linux-kernel+bounces-15607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 77D0C1C23396 for ; Wed, 3 Jan 2024 13:42:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57F6A1B29C; Wed, 3 Jan 2024 13:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FHMvbDq3" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 24FF41A720 for ; Wed, 3 Jan 2024 13:39:10 +0000 (UTC) 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-f48.google.com with SMTP id 4fb4d7f45d1cf-5542a7f1f3cso11555945a12.2 for ; Wed, 03 Jan 2024 05:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704289148; x=1704893948; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=5yn09ffYZPc7aBLokf+bfH+Tett0Gy39mn9i+Z/bJZY=; b=FHMvbDq3l4FduL1U91gFrVrmirpdPi606A+9f9H0Yzj9Jq2MergD2QEFfk28XwOLKI cFQjTRvVFQS8qcmfRwoM2XD5SJ6e5ZttNxIvnZb+5jdW+0HPyXNRa9mzAMtCrLcCauwV J50X2O5dGWOKyGgxqe34/O3KbIqvM6Z47fC5suYQbZS5wLrrdDP7fIIc1O9wrQQQstnw MipOc7owJ8jzdckl8g7aKzF0ZoxUSN+1vOx4gijdAtk1M3UV53jRpTne6WVSXTSbk8Mk ZcfoCOii+8MKV16ZsJ67La71pQpZ3dk2OtAg9kD1PBDFIbwjMZCwY+d4GMjvxwHg/8zj yCow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704289148; x=1704893948; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5yn09ffYZPc7aBLokf+bfH+Tett0Gy39mn9i+Z/bJZY=; b=Kr4FK3kOS0yxptbaSrKPPgGRvU9NIWPlKmlS0yxqQUr6fsVLeiNRcqUthwA9VZ+Dsl gjmDiy6DaZtUW9GlyS8P4iSM7DOUxvwjAouPOV44ymu2PaviJSKrJeuyB+u1777s9pe6 vNdgGzheo9ZI++czSKxaRJIvTKWFavyR8x8kCQPM14u4FLkZXffqI6p3fQC0E6NhDi/X 5aCjT25o405g/O8OlAN+KGA9URDWipR2X8cpp5M30grsDF5b8eo6SsdAdTzhf7Jtc9qF MN4+WKmIADncw2arrhRbEsNBffV71Dp0ZZ+K5W90jKgIp2IadM26tQBqGb1mfW+eDkzM i7hQ== X-Gm-Message-State: AOJu0YzvM5k4HSgwoUfWRuEXmV6qoH/jBK832uE+ZL8halzUix4zBOAR F4UFR+Z8o3hVqyiaXDqIK2SFld0zETZFbA== X-Received: by 2002:a17:906:71ce:b0:a26:a49a:7d3a with SMTP id i14-20020a17090671ce00b00a26a49a7d3amr9198715ejk.67.1704289148551; Wed, 03 Jan 2024 05:39:08 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id gh13-20020a1709073c0d00b00a2797a545a3sm4926210ejc.193.2024.01.03.05.39.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jan 2024 05:39:08 -0800 (PST) Message-ID: Date: Wed, 3 Jan 2024 14:39:06 +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] arm64: dts: juno: align thermal zone names with bindings Content-Language: en-US From: Krzysztof Kozlowski To: Rob Herring Cc: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231209171612.250868-1-krzysztof.kozlowski@linaro.org> 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+NW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ygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03/01/2024 11:13, Krzysztof Kozlowski wrote: > >> 'pinctrl-[0-9]+' >> 4 thermal-zones: gpu1-thermal: 'trips' is a required property >> 4 thermal-zones: gpu0-thermal: 'trips' is a required property >> 4 thermal-zones: big-cluster-thermal: 'trips' is a required property >> >> Last I checked this, it looked like the length of the child names was >> limited because the thermal subsys uses the node names for its naming >> which is limited to 20 chars (with null). Though the regex here allows >> for 21 chars without nul. Looks like a double off by one error. > > Yes, that's another issue. > >> >> The thought I had at the time was to make the kernel drop '-thermal' >> from its names. Might be an (Linux) ABI issue if userspace cares (I >> think it shouldn't). Also, I'm not sure how the kernel handles the >> names overflowing. Maybe it is fine and we can just extend the length >> in the schema from 12 to 18 (plus the 1 starting char). > > The name is used in the "/sys/class/thermal/thermal_zone0/type" file, so > actually some userspace could depend on it, but it would be affected > anyway by my renaming of nodes. Stripping "-thermal" prefix is a bit bigger task, because it is later used to find the actual nodes. The thermal framework does not store device_node pointer, but looks up by the name. There is on-going work around this: https://lore.kernel.org/all/20231012175836.3408077-2-thierry.reding@gmail.com/ https://lore.kernel.org/all/20231221124825.149141-27-angelogioacchino.delregno@collabora.com/ so I will just fix the DTS (shorten the name) and fix bindings for 11 characters. Best regards, Krzysztof