Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7137730rwp; Tue, 18 Jul 2023 10:33:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlES/AyLtQnOGJJqqJoYG56AKQdWZgj05F34CxHRkruS1GYUk1Iq3FgR5TrOb4UGeZQMrN9h X-Received: by 2002:a17:906:6499:b0:993:d90e:3102 with SMTP id e25-20020a170906649900b00993d90e3102mr326590ejm.6.1689701585764; Tue, 18 Jul 2023 10:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689701585; cv=none; d=google.com; s=arc-20160816; b=gifGyBLe8zD/nGCUxxe3GfOuSMw99peKsZejfK8Vj41QZzY+Yig2xXCYyoCBcUmig8 vtkjv3zO06J1tEFexkPGtiaQAcJemqd9UHcvq1V1bz71osckw4k7RXrrc22BcUFl94Xf A/OKGMMuEqEnWWXlBdGouBkAQrLoZQBMN+R2ZgXe82WP745nuvGcN/HCcRRvSBHW9dHA VFmErlnXMmO23KBcu0vaXOXuqk9vqg4p0PFrmvNr3G3ODUWF1SWkWNFtbcj6hng9mCbB RU+RjU9m7mOLNKxFwVXgbuRbio884id8qPOHK6yEV/yGN/Esgk62pgscVUXT4+7M7Goo 7CVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oB4ZyTPiRMh8uiHtJckpmyXEBsp+YxvtmLWlUvgMk/M=; fh=jb9gNcnsO8qoqEekzUo80f0u+mAZ4sfG7eLA0mA4iog=; b=vULXmuhQxbnNm7KmAUuoOOA9aaltFrc7lixIUzX5JwZSWiNNAwPMepZQSwWwaDg+xt 64BKW4WwrUoDOuo+d3DCI9oCuf6wuR/k3dbqTUduWhWhbDXV9DxG6JApl6s+H5MibFPY GOgDV8EkYW2jAcevokE4+ZFfRV5MPP976p7HhWFyvHwdH6S+NqWIbqeuOVQEVtDeIERE DqFh6fLWgXqtDyH5pe7VEXprWYzQp94ZvgDBN+Mg0ofkp+OniI0RhR1D2wwixUSN6T2v 6mCrYRqSkmsosNns7FGm1qEOzB+A0M59F45dYxbHS+0yMb2Dex5ewPlW/GM9/r2HUMsM MTGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Y1+OUm+K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g24-20020a170906595800b009888ce5d3d4si1462992ejr.436.2023.07.18.10.32.41; Tue, 18 Jul 2023 10:33:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Y1+OUm+K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbjGRQuz (ORCPT + 99 others); Tue, 18 Jul 2023 12:50:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbjGRQux (ORCPT ); Tue, 18 Jul 2023 12:50:53 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF1E319A; Tue, 18 Jul 2023 09:50:51 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fa86b08efcso9885825e9.1; Tue, 18 Jul 2023 09:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689699050; x=1692291050; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oB4ZyTPiRMh8uiHtJckpmyXEBsp+YxvtmLWlUvgMk/M=; b=Y1+OUm+KfnhNxz2FsnvadTldRBXR977AylELwvjFF8aABcT5TuWYDrR1jsjviIpW83 OAF/Ux11x6X+51dIzA62iasPzvSM4umD/lUeeUAhk/mh0NBfJu1exB+uSFtZfqNQB5Nl eOp8M46GxxHQJ8glNcis3nOErtYTNxsNbh+g0yph0R9gNTj8Y1bQNza+BS2DyBHkJDhg DKxfWVmiQMnyQDGcMAR1QSsQTWU+jK70mdkdhS3O0VgmrMuuA26DcNKXFVA3qy7KhzmU FdV0sPn04MJctdvZDYGSQQ66j/fLDDKiHsLlMJs+9uehKQxagFCXOeWjTlDhRxBwXmFG eT0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689699050; x=1692291050; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oB4ZyTPiRMh8uiHtJckpmyXEBsp+YxvtmLWlUvgMk/M=; b=fTl7lD1skAulnkgDuxESq+p2Zciu/Jt87zh+SFYhYBgaMQ6ZDSDvxzsyFQcokzn7RK 5ApUKJM7eEOCHyae4iAlRsAWGVytERmrrV9EK5XGCzQFwvqDFdZlbOXx/4niLs0VU2VG KL+IoncWM0F0AuPE95nTk7FsIuzeWIjbnDMh+dLOddbQKUuf454VOup4dXA1ZtCHtvV1 fS/5scNJHtDi6aIrosxOMDQS5OauiQTgdc3sHMklq7bxDCY8J4SzreMX0pYb646J3iWN 5Cr73pq+64qjVBnM/i06lfhQ2N5kgAbbQqlxv/RjBDWzbwz0/ykGYJRhgqobpinh/wIy SL4g== X-Gm-Message-State: ABy/qLY2VzBhXwunMdTgWGDaQxND4SXsoC7fXE61c2MzP1fGo8d6p/7Q bhjB5evBqHeZC8iIpTXHtKKOh9UOhx1k3AylUk8= X-Received: by 2002:a05:600c:3b1d:b0:3f9:bf0e:a312 with SMTP id m29-20020a05600c3b1d00b003f9bf0ea312mr22373wms.1.1689699049984; Tue, 18 Jul 2023 09:50:49 -0700 (PDT) MIME-Version: 1.0 References: <20230718-thermal-sun8i-registration-v1-1-c95b1b070340@kernel.org> In-Reply-To: <20230718-thermal-sun8i-registration-v1-1-c95b1b070340@kernel.org> From: Vasily Khoruzhick Date: Tue, 18 Jul 2023 09:50:23 -0700 Message-ID: Subject: Re: [PATCH] thermal/drivers/sun8i: Don't fail probe due to zone registration failure To: Mark Brown Cc: Yangtao Li , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hugh Dickins , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 18, 2023 at 8:05=E2=80=AFAM Mark Brown wro= te: > > Currently the sun8i thermal driver will fail to probe if any of the > thermal zones it is registering fails to register with the thermal core. > Since we currently do not define any trip points for the GPU thermal > zones on at least A64 or H5 this means that we have no thermal support > on these platforms: > > [ 1.698703] thermal_sys: Failed to find 'trips' node > [ 1.698707] thermal_sys: Failed to find trip points for thermal-sensor= id=3D1 > > even though the main CPU thermal zone on both SoCs is fully configured. > This does not seem ideal, while we may not be able to use all the zones > it seems better to have those zones which are usable be operational. > Instead just carry on registering zones if we get any non-deferral > error, allowing use of those zones which are usable. > > This means that we also need to update the interrupt handler to not > attempt to notify the core for events on zones which we have not > registered, I didn't see an ability to mask individual interrupts and > I would expect that interrupts would still be indicated in the ISR even > if they were masked. > > Signed-off-by: Mark Brown Reviewed-by: Vasily Khoruzhick