From patchwork Thu Jan 25 12:11:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 192049 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp1592535dyi; Thu, 25 Jan 2024 04:12:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IG40BCmSdxXV8ajUWPYTv/JmSDociE+ZzGIJrioiYs/SBH9dYhNxbPrdlCwlCr6LkXCej9r X-Received: by 2002:a92:d942:0:b0:361:9bd0:1527 with SMTP id l2-20020a92d942000000b003619bd01527mr990450ilq.53.1706184775080; Thu, 25 Jan 2024 04:12:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706184775; cv=pass; d=google.com; s=arc-20160816; b=URtzhg/5rEpSPDRIUVYm9ylxWw9J+vHVcHZuyXq9sUfsUAhkpkXsZ+P6PaDKmM6c70 nNCJ3jiCpV3Tqr70/zb7U/8p94hccUCPcMKxyXh95QLGf/S73G0sDP6joKGGys+IT7jd aTg2SYMyophLZlexwtuRhErBCszLJAkq6eyNM7+bmMbMuUB+YWdZt+tlquJ6LLl7aqb4 jZbgegAVA3K1o52JSIOFZKlDZE+1889L3K5urSSpes2zqI/TL2UBDNztfTy9pS18Fogt pO0arUCWxBIXYlw2cNBmYTF8dGxFW/VvLjZ+LWXllVLZWBaA9ZuqHvPX8kt8WUf054PU DVug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=yB2oUZTJxFBXmfGYTP34odt/VQAw3YcB9sjxxvoA4rY=; fh=Krp6/TO4ZbPLkKiw6CDezdJ2OjE1/iRD46QcuQkH3lM=; b=DIWaU5PAhNRdHGUqoAO2+TjoyRI4Z1IQhOKcqP0bEN9rLAZ15JqGOq+RsUjMe5phMo MlnxkLccSuAfxwn7xCksY7gmJrNBz1XE2rayDN1kOV0peXC5CQg+KA7BAysxJnA3Xgqg stCBRey+V5v8N0KQG0v1Ld5YOIKAa/Ew5W9QWMyyF9FhHTZvWqnqohtKgW8bZLwB1B6h gpN6KIvnm4VZb3ASwxYiKpbeN122kM+kmJ4VC8K4Gqt2SgeLmRT9u20MGE9c5fnRGd6U mhF/85MSzg1zCavh3Zzj1T3AgjSuyV7Zv6lJ46f2SR26nPLmirSYg/PUpLmQMCaXgF26 0r7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UvkP7mgH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38569-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38569-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 29-20020a63165d000000b005c68da9ca8asi13394226pgw.787.2024.01.25.04.12.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:12:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38569-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UvkP7mgH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38569-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38569-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 01A7C28F012 for ; Thu, 25 Jan 2024 12:12:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB2A54F216; Thu, 25 Jan 2024 12:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UvkP7mgH" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 4C099374F5 for ; Thu, 25 Jan 2024 12:11:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706184693; cv=none; b=NkHYJUlRBj/fdMqDXLwZULIdUSXN2MzUNd3+DMqhPH+9jkGl5dlX28oyn8Q7fgXTZLhMQR1vwt/tP2wgLvKjNgU57x3rw4fq2afvi8wSjPZ9hVQVVVRLwoRXmpBqyeUl3PvQDzhYCx64UGb4c2SnxmHU5ZoIH7kHHajVcDY2jq8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706184693; c=relaxed/simple; bh=ZPr6E4c1CKD0WVJLVQoqbaMXnDZAUQSUX250E823OTc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C6PzvJWFu7a/FWuPkDJtJeJhgTaOBpu4wReqEcbzzlYrcDifYnZvmQ9AfufxQ/z8cS6xVhMeQuH5uJgiqoSa2F1qg1g8+HR5vPNCJvwnwrQ02+8oRty0O14h9U83tK8yga/rfDOcQ9J8fQEmXaUgK45E2IwRffIv8rykw8jWEpk= 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=UvkP7mgH; arc=none smtp.client-ip=209.85.167.44 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-lf1-f44.google.com with SMTP id 2adb3069b0e04-510218ab26fso157760e87.2 for ; Thu, 25 Jan 2024 04:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706184688; x=1706789488; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yB2oUZTJxFBXmfGYTP34odt/VQAw3YcB9sjxxvoA4rY=; b=UvkP7mgHpzs612whY5LImcD0LMgRQ756HnNzbWZKQ5QR8elIritTmOGJXmkMJHgSkn 5gaOkINnZyuZFuk2LyhdaQvGgDjUf9qs2jC3ZvI63txBVPbJWPkaQ/AqVBo7i/CMrthW RU5OdxpASB/pLMqZ5THWg8u0t2ajjO+n5HBfMsv1FaF/GFMt13bPMySUoEJOySqWqKXi IiM9hazFRIajMdRJcv5Fwalr0dq7tlFGsvfi1vaen9EdZIHLZbi2pRBmtq+0DExrg/mq GabOITeVrTHW8tOYOXySvYkjUMuzXEtogEB20v1JV1/1gz+tJqKEvRPNSKfDxup0CRsW ykrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706184688; x=1706789488; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yB2oUZTJxFBXmfGYTP34odt/VQAw3YcB9sjxxvoA4rY=; b=Pifv0gnC0ZSKI1GXnFHkuPHI8AGI0yUToLTvlNa+EmU/oCFxlMfLnAa3rzG3lhFQAJ +w7gJpsrqLmiFtAFoRHlwOyOrXk89i19iSipGcYI3z9ln8S9+HeaWPrL0fKvDIjbAtwf qFAn+p2FH/bX1/oRr1+r2euq5X+Z705E+ScAWxm9outpQBLkuPhMDIqALwiD6EKJ7ZmA PDBAS0Yskezrc2B9IJF5gZjbbV/lCjDNmGN3zhcdc8F/aCVi8+Fx9BIcl7yWqlol/x8K 8ZF+xa+f5593IW/mvnQD2hX1LZHdp0dLCyv8SdQJ6ylGGQlkNZsfBNtrUxmDiqXinf+v bMLA== X-Gm-Message-State: AOJu0YzE3lFtzqNnYJLuPR2ehTpXxFUGPdPDdsuuM+inyf5NRdV4alQ0 IOzV3cpkLbT+RvD9FmfGDDFLR1qu28+x9b9LA0/rFqWXIfEHuW2ElH5jb2ypRLU= X-Received: by 2002:a05:6512:ea0:b0:50e:a6f8:aacf with SMTP id bi32-20020a0565120ea000b0050ea6f8aacfmr820110lfb.14.1706184688088; Thu, 25 Jan 2024 04:11:28 -0800 (PST) Received: from [127.0.1.1] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id y20-20020a196414000000b005102188d154sm21221lfb.108.2024.01.25.04.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:11:27 -0800 (PST) From: Konrad Dybcio Date: Thu, 25 Jan 2024 13:11:15 +0100 Subject: [PATCH 1/2] dt-bindings: thermal-zones: Don't require polling-delay(-passive) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240125-topic-thermal-v1-1-3c9d4dced138@linaro.org> References: <20240125-topic-thermal-v1-0-3c9d4dced138@linaro.org> In-Reply-To: <20240125-topic-thermal-v1-0-3c9d4dced138@linaro.org> To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.13-dev-0438c X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789064406492564595 X-GMAIL-MSGID: 1789064406492564595 Currently, thermal zones associated with providers that have interrupts for signaling hot/critical trips are required to set a polling-delay of 0 to indicate no polling. This feels a bit backwards. Assume 0 (no polling) when these properties are not defined. Signed-off-by: Konrad Dybcio Reviewed-by: Conor Dooley Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index dbd52620d293..68398e7e8655 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -228,8 +228,6 @@ patternProperties: additionalProperties: false required: - - polling-delay - - polling-delay-passive - thermal-sensors - trips From patchwork Thu Jan 25 12:11:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 192048 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp1592198dyi; Thu, 25 Jan 2024 04:12:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7t+MqIURCX5vmcfA9vVCtQkitIdEMOa/4aGvw3pTK53k53qIxb7Gtr3rCkK+kBMgpy7PO X-Received: by 2002:a05:622a:4c8:b0:42a:63c0:e4a5 with SMTP id q8-20020a05622a04c800b0042a63c0e4a5mr748810qtx.118.1706184736034; Thu, 25 Jan 2024 04:12:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706184736; cv=pass; d=google.com; s=arc-20160816; b=XYk8DcCRMzbTERYhkioctsN2VewnXrln7qPV1OheN4DhSGQ09uBnfc3R757KaVKHwE 3rw44hetyIPOKTj1LUgxEe/O3klduKw3zWcdhBCOOWgwOHcdr2SstP5tQt4D+EbC3YKB C4sCkNMNiUikhFbkYq/iALhyxNAbVPJkSyW1lRqPsp6TqQCPbiCk+pfCYdt13lGSec8s u0CHS5dSl5IFW5PuQUOsu4aJucoXh/oMa0NvugtNRFgj0mUzSIpm/zHo52QGuKOAytd+ L59Ck24pik2wQsZQ59J6Y+yWwbPl3aQ6J/zopS6W3eZPtjKrBs2iGltxto1upswXVVe7 vLnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=11ARpJ3LB2A44PAyJ/Y1XtoWgM3SgViyHp/Y/XmAtrI=; fh=Krp6/TO4ZbPLkKiw6CDezdJ2OjE1/iRD46QcuQkH3lM=; b=kTI4gfMfol+mGfLWBz1mz++AIXEMF4B/9U4TgB9UM57GP/XkjpHumFUZ0v3sdoBjSB L3THxM6zLQHvNd2Fga90grsk9ELMLcyRT/G7AlAmkS2diOlf/lSPn9GdsPFCpkyeh5KX bL4ZnxU/SXq6+uaZTGIRvqV7a4n9+6089Cw8QMqUsC0XPfQ8SbJKMPvoTjeQeUZP50KR C/dZYcglD2j1uaCmNaMp2icG6qkS4O0JeDO1qCRo+J/pZ2GVeWN9r3TXKhkpf0mTwCUp //6KNPWs9Tfs59KZbZfk0NjmBV3R3VcXPgKOsYBnB9U+eUTCHgfKd6bZXjPr6QJiczkI wVvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yOmUmARZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38568-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38568-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s42-20020a05622a1aaa00b0042a68020384si1836241qtc.221.2024.01.25.04.12.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:12:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38568-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yOmUmARZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38568-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38568-ouuuleilei=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 CE2A31C22C6C for ; Thu, 25 Jan 2024 12:12:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 892FF4F203; Thu, 25 Jan 2024 12:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yOmUmARZ" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.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 4D6A94123F for ; Thu, 25 Jan 2024 12:11:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706184692; cv=none; b=AY3pP0j1TOhzZzzfz62cP8Trm2qRBq4xcv/WW+VggneB/0kma+zarYwkoRTwFSeLGcywm35My4/1YkU0pdH0BowDxTBU21DWiDVz6LsJHbhSGO1zytrmUK9xlu1lLHenzilD9/aD8NXZiqHmwJvYH06Zkokk/aNiygGtYgsAAiI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706184692; c=relaxed/simple; bh=Xt7YAEyjkpAAOCyAkOs7IhbYyAxT097jjtamqFpBtpA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JFP0BBw34vYvbnAhaJlfFgGeZPJjZDV4L31swfpWqpCoVkgzjMOMqMwlj1Li9s0rKQ3bOiLnuzs0x22g/vapTrr2N/suEZQAExioIhGVEtOSXYCyji56oqCjq44/HfSefohMXiX6vJ+RkxpTDxkLF6pS6pTMhlFlPX+Tz9GcveM= 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=yOmUmARZ; arc=none smtp.client-ip=209.85.167.47 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-lf1-f47.google.com with SMTP id 2adb3069b0e04-50e5a9bcec9so7433973e87.3 for ; Thu, 25 Jan 2024 04:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706184689; x=1706789489; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=11ARpJ3LB2A44PAyJ/Y1XtoWgM3SgViyHp/Y/XmAtrI=; b=yOmUmARZHKSW5nylWfkw5suq5c1Wk/NCULog7IF5BQye7bv+vf/cB+pj0ELBN2v6eo RjR9ZTE1Eu4lGG+CvacZJq0OuTIEOXHU4JmylKDgTgUKTz30gx/DsqSkxE+Yg5r7cdz8 pHhpXYPYuNxPUjoVM73EzprucYoYoiVzid6n4qhP+uwvd2hHrBp1l9/hdTpgTKnM20+a QvpWOzvsLIkvhjkPrkhjTdmVIoIu+4YVp2jFoMFzcGHlEUA/Ckm3SXCweduWqv0ILpvi p6w3Usr1Ke3VCCYpnbbD/shBohGhisgIB3wDhcdYov2m3/gaXhnZjz1+CsD6WOa+3cDr pV2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706184689; x=1706789489; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=11ARpJ3LB2A44PAyJ/Y1XtoWgM3SgViyHp/Y/XmAtrI=; b=vWgUzZzIPGyyAXocvCA4cbxEb5zvpb4BNom56hMkYNjZe2rjU0Xgh51ysOgl8A2uRF IF/gzVpYwyat5tzKbQI1HC4CmHhifW+j8ImRV/7pGmtxVhWV9Bj0RPilZ6wfP/Aw0THh zbCKgARjOYxXPW7QPXFhChAIf2oGGbYS0x5gZdjEiS5a6NqJwbQdz04TyO6U0qCwc6yf gYtf+nmr2qQptZtJs9UhMUDHaflejWHKuON890ZnynrksAkpFIXMKJ8x6wnh8pIXDg37 ITo1l4aIF02CnA6YVz0IgCFcFJujkb06LjWJ9wW4fukQT4n8xxZiAckkyxUgM1unXcWE mh5A== X-Gm-Message-State: AOJu0YxG4cJ7yOZaCpnulqhnz61UL9ltoduBGe0NCmGwU/P1YdUfiFrO Gn5SK7OmHm5e35+1MbmevfRFxkkIhKJtK5I4mj5u4X79mdZXXfwdQVFb7H5kVKhSSCMUSydvFJ0 M X-Received: by 2002:a05:6512:3d09:b0:50e:e888:2c48 with SMTP id d9-20020a0565123d0900b0050ee8882c48mr690981lfv.22.1706184689285; Thu, 25 Jan 2024 04:11:29 -0800 (PST) Received: from [127.0.1.1] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id y20-20020a196414000000b005102188d154sm21221lfb.108.2024.01.25.04.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:11:29 -0800 (PST) From: Konrad Dybcio Date: Thu, 25 Jan 2024 13:11:16 +0100 Subject: [PATCH 2/2] thermal/of: Assume polling-delay(-passive) 0 when absent Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240125-topic-thermal-v1-2-3c9d4dced138@linaro.org> References: <20240125-topic-thermal-v1-0-3c9d4dced138@linaro.org> In-Reply-To: <20240125-topic-thermal-v1-0-3c9d4dced138@linaro.org> To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.13-dev-0438c X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789064365507229955 X-GMAIL-MSGID: 1789064365507229955 Currently, thermal zones associated with providers that have interrupts for signaling hot/critical trips are required to set a polling-delay of 0 to indicate no polling. This feels a bit backwards. Change the code such that "no polling delay" also means "no polling". Suggested-by: Bjorn Andersson Signed-off-by: Konrad Dybcio Reviewed-by: Bjorn Andersson --- drivers/thermal/thermal_of.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index 4d6c22e0ed85..61bbd42aa2cb 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -225,14 +225,18 @@ static int thermal_of_monitor_init(struct device_node *np, int *delay, int *pdel int ret; ret = of_property_read_u32(np, "polling-delay-passive", pdelay); - if (ret < 0) { - pr_err("%pOFn: missing polling-delay-passive property\n", np); + if (ret == -EINVAL) { + *pdelay = 0; + } else if (ret < 0) { + pr_err("%pOFn: Couldn't get polling-delay-passive: %d\n", np, ret); return ret; } ret = of_property_read_u32(np, "polling-delay", delay); - if (ret < 0) { - pr_err("%pOFn: missing polling-delay property\n", np); + if (ret == -EINVAL) { + *delay = 0; + } else if (ret < 0) { + pr_err("%pOFn: Couldn't get polling-delay: %d\n", np, ret); return ret; }