Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp450305rdh; Tue, 19 Dec 2023 04:07:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IE13G6VT1pQg7BCODcj6OES6aBJ7/qNEUQEZmnupPUb/gjgJdRODZxzfZG5Di19eTiDKfb+ X-Received: by 2002:a05:6e02:1bca:b0:35f:80e4:298b with SMTP id x10-20020a056e021bca00b0035f80e4298bmr11501112ilv.40.1702987671527; Tue, 19 Dec 2023 04:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702987671; cv=none; d=google.com; s=arc-20160816; b=a6nSAWADrb/JQNmJUZKMUTI1mobI8FHj+Xrm5wc3ZhYWEYPsj7fPlcQo3mxvfwH16u 6tISg45vL/PoSe3Y8sQc9V7RxOJl6CpezXIGRb1OdMrnXvQ0wBS3hJb9cHqlS1wKw+4e WymCxNKgeXEBDZ/kUCXL7o+ZiUJ3aBD+ciOrF0tvKoFjeplsioIUG2W6nPyjnKPi30Il YJoQQG9OP1yMpjgOPQ8nwu9moXCFLRGYc1GCyEGp8x2hM4mX8RzDWQgJBZPqRDLqf7Lx OxpXjNr78NqWIW1DGep4GR66cTs5vkPDnvFGrxllYhbrakD+6yM0nWLXfkYHmWIBcrM3 BVHQ== 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=X3YR050jxxqtUei61l45Oklud07svtS5N+6+fAR6YhA=; fh=yFOQKtF1/WQ6vTf+lkMNdy0vNWKGBCmW0O5c2dT91mY=; b=mFY0OpZwxT/m7OB9DzhJ34qrFiXFlfeAt9/zDFcbSSJA8PZFuZt0WixXfDZrwKiLpK ms60+UX7jfgjtXOqSXr9fxX7sNhZWHiWeqv+NrE7sV4vqOPK9FgZ6jmDctLcDNqiMceZ sRf1Zo9IU6d8WquIxPdhtOjaOSNBOkGhplubR/rblMqisgVxaWhb2mIDjU3h9joE8hhg BQ8IWhZb0HoJy0VQroqA6uEbSgytt6EKTLnrVHSVoWIWCv4/GAoGW1tYZn19XPp1ic0n 9cce2L0vL9+UFHNKSFQ4Pe3BSdh93D6RJFpVH9a8P2vAy84n7P2ue+GBpADjYXWq3TbU z7TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n9qVQMNn; spf=pass (google.com: domain of linux-kernel+bounces-5140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5140-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a1-20020a654181000000b005c14fc66cc1si19189972pgq.22.2023.12.19.04.07.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 04:07:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n9qVQMNn; spf=pass (google.com: domain of linux-kernel+bounces-5140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5140-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 72C55B245C6 for ; Tue, 19 Dec 2023 12:05:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFCBF168CC; Tue, 19 Dec 2023 12:05:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n9qVQMNn" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 72358171A2 for ; Tue, 19 Dec 2023 12:05:49 +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-wr1-f45.google.com with SMTP id ffacd0b85a97d-33664b6d6abso2277249f8f.2 for ; Tue, 19 Dec 2023 04:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702987548; x=1703592348; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=X3YR050jxxqtUei61l45Oklud07svtS5N+6+fAR6YhA=; b=n9qVQMNnxEkO2UUmM56BYSv7X1Wdp/D/IGM/PNBB74BGymPdxPZtGIfaL9n1DFPZ+Z +4q8cwwJclgFD0bTxU7SDl/k6yrDx69seslcN4fgeRPFgnWSJwDlkC4wV2k6SLFGle4g wXh5VPrEw6em/8oJqO2i3XREsc9g6JYbEfZIX5tR9oku6hKJFNZsQSMO4MmEfm6EK1IR gcmFzEHB8hEpISqCWq+2HJ6DLRfd/mqg/FcaXRAFXlv6tMCPDhlpnD2GLn8Gookh2H2Z Du5z+kWjKhdhJCsTelK0hyFn/AP+NVRln8fYVXH3J9IjK84kNvJTRCu5gCd5Jqq2+OMI LacA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702987548; x=1703592348; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X3YR050jxxqtUei61l45Oklud07svtS5N+6+fAR6YhA=; b=jzn0jHJ3uBmndbCpsMkIuJeuth55F4sve+gpdffuPUZgfar7sOdT70c4qAZ0SkIb/8 /C3kqr+XtDNEEQ254cN5THW8wKvL+gsdLiHOSMk2zGT48PSkSOwez4CWNUJprpnEPYhN nwiFxpTPh9sq0Cnaw0RBIOjwnyjaKycqL0fDYuHgGHrNA5e5yaVoe6p8h1TDSPTwLTxu RgZHH1QcHxN1NDUTv8jV60LYj/9iQi+Mu8jsSm189GzWn4YL4CCm0zesQjXqXS+YEBmN RRprtIM/lVSbqWa3nesSrkS0jSQSmYhhmWl2hSv/lxA/kCC3uPKyM832xEYFelkuD3ra zteg== X-Gm-Message-State: AOJu0YwZSIHZtwcP1areKBmIn+HXEcppjtcft1V2Lmy8N2P0GhKKajv/ g1wCqvl4RIPuC2g3ymtahQ19sA== X-Received: by 2002:adf:ee8b:0:b0:336:66f7:2d39 with SMTP id b11-20020adfee8b000000b0033666f72d39mr1859810wro.11.1702987547704; Tue, 19 Dec 2023 04:05:47 -0800 (PST) Received: from [192.168.10.46] ([37.167.119.56]) by smtp.googlemail.com with ESMTPSA id v30-20020adfa1de000000b003366cb73f74sm3811062wrv.66.2023.12.19.04.05.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Dec 2023 04:05:47 -0800 (PST) Message-ID: Date: Tue, 19 Dec 2023 13:05:46 +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] thermal: core: Print out thermal zone name on update_temperature error Content-Language: en-US To: Konrad Dybcio , "Rafael J. Wysocki" Cc: Zhang Rui , Lukasz Luba , Marijn Suijten , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov References: <20231218-topic-thermaldbg-v1-1-451bcb723e1d@linaro.org> <1e151dcf-d4fc-4aec-9f68-c8ef372a00f2@linaro.org> From: Daniel Lezcano In-Reply-To: <1e151dcf-d4fc-4aec-9f68-c8ef372a00f2@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Konrad, [Cc: Angelo] On 19/12/2023 12:48, Konrad Dybcio wrote: > On 18.12.2023 20:40, Rafael J. Wysocki wrote: >> On Mon, Dec 18, 2023 at 3:40 PM Konrad Dybcio wrote: >>> >>> Currently, we can encounter an error like this: >>> >>> thermal thermal_zone48: failed to read out thermal zone (-19) >>> >>> It's good to know that there's been an issue, but on some occasions >>> (like the error happening in the middle of a platform crash), one may >>> not be able to look up what kind of thermal zone that is. >>> >>> Add the TZ name to the error message in order to speed up debugging. >> >> s/name/type/ ? It looks like that's what you mean. >> >> First, the tz type is not its name (because there may be multiple >> zones of the same type) and it would be consistent with the first >> paragraph above. > That's possible, I'm no expert wrt thermal :) > > Would you be okay with this change, together with an amended commit > message? Angelo is looking for how to sort out the name vs type confusion [1]. May be you should wait he comes with a proposal before updating the message? [1] https://lore.kernel.org/all/3428b2af-5522-4090-995a-10eaee90c28e@linaro.org/ -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog