Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp279534lqt; Thu, 6 Jun 2024 03:27:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVx+JweV+9SgWYK30TmtfNF4qloq5SGQNp9BtAApeT/K7qYHQ/CMwjrbRnqMKr57eedAQSXLZlAbGsYLbrd1sN1MtxuQvak7Xg+u0vYQ== X-Google-Smtp-Source: AGHT+IE26beor4P/wzU4so031GqduOUdWpWfp62CfnDLW6F7uyJa1OCqGHRKE4Ep5a1lLrRuFZzQ X-Received: by 2002:a05:6358:4419:b0:19c:3d57:d480 with SMTP id e5c5f4694b2df-19c6c7c308bmr601573755d.16.1717669672542; Thu, 06 Jun 2024 03:27:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717669672; cv=pass; d=google.com; s=arc-20160816; b=Xku/iMJbFBFUtUBGb4g634Gf2m0s5HW3Whslnuifodfrxz8QTb/JAclJ1X4Lg8F+MH 74JLuRm+pYUWPsT8I+jE2T+6O3KGqzRvWHBn1YJE7mT/JEzcwPtzqOYnplGPO19Z/Yzw 2n1lTMkR+3XtepnvfwiMa3IXNypNYXU4/4wB18sViyYCx2/ext6TIPhAef4nBlWAYgBy L33/jLEYr6xndAe7WEm12EEm++DIsYGP7pAlgUuboemNYWvdXX6d/9aOUNyC/WYUWhrG qTMdttyiXvAAEejkQHZDuJGMdxTnEgjdsewcz+VHKN1Pim+PThTPagjCmD5ssp9fm4A/ 6kaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=skEJoTlsrcqQ9eoJfrXrf5gYLJtecREqu3wEYoiZjUQ=; fh=G+6bgUqUhxrhmJiSMT0G7bTqMigQj4lU84WID9vjJms=; b=RsW5tO2m3z2fe6ZAEUIv4rivopOb5ELRIu75MojWnCHsyixXGR8NMDZDCZkVSmsEtW YzNnCRPrDpi8ThrnVY/khMJblZr3hE+2+hrqZYqRaCKBsLdBKDaO+kka4OiHR2kWVwkH siMHpjVklUKcY+AHDOmxRSCyzZVKumSwFeHgDPCqA/vK/TpI+GHXvy7eDMqSmvkL73IL Rz42mouxjhg0++A0CVpD90S62/M8Ysm202rt3zushjNzEevsdsnUaGfipKxNg5N6tAGY cGMcORQX9vYQFoW+BHWLueB8B3KmUCCqrK2+nydHmVTX+UdxJcpluxCWlwM3Ls4IJe81 o8AQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rgww0fpg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2a280ef4si899881a12.802.2024.06.06.03.27.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:27:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204048-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=@kernel.org header.s=k20201202 header.b=Rgww0fpg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 D1FB0B2279C for ; Thu, 6 Jun 2024 09:48:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB81017994F; Thu, 6 Jun 2024 09:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rgww0fpg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 047C0178CC0; Thu, 6 Jun 2024 09:47:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717667278; cv=none; b=WCSwKGvFy7yKo9kz66Me58dyaL7+TtBAfAiZ2p9lQ36Huscm51Ibph/Y3vhp2VpLr61Zsp/8QFiT6gWV0HrVc4WP90oQ734FyWdLK7NSyjJaWkemREEHZkDcY5z8icG9UFLwdOxsWLBcmFlBXrmdBLUNy7tdedw/AE1jeIobVaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717667278; c=relaxed/simple; bh=HG6f0PYnCjpQM59ffIKq4KBMG1zved47nRM+LV2Sbbk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=dxZ19bNeZ79kf74yBhTxzO+aI3bvL/IX6bl+yrWnLOCcWm+X5eO50+pBYfkdSlREz9hX1QhOtD8nfmpkkNQ/kTxDybQ3kpZ/oOdX3ax/bFQecsdQDXjX55CJm7VsLgSq1rZkPa8lMKNEzPpENBWbdMz1uFd2yKvYHtCkFRGseo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rgww0fpg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 841A6C2BD10; Thu, 6 Jun 2024 09:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717667277; bh=HG6f0PYnCjpQM59ffIKq4KBMG1zved47nRM+LV2Sbbk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Rgww0fpgGECJekwWDoHdUUpmvN6lJGmX80NKiBeY83wabYa719rzIjUwpfxCxIzZS 4Eu1fmanC4u7EKqcAt0rMswJ6IwVGse08BScmV5BV7sJn3aAkIvUOtgJ40X0XVisL8 MEYpLdXOCVaf4bVgLpAU32iP8LrS/K+uREI20zO4PAUhpDwJVSeEod9Q2Y5x8dMJEE g10/kobPmHosT2cxUlkXm32dvtiEgQ5wjBFSVXipNe8gYg+9hwY5vRDwrzHjApl59L Dv5/ahMpPpn5TL9qVSAS9rBlpeU9XgtKiQQ7eD/rIPDM3E659lMsf0WI4r/nvFQ7wi PMt7A51x66X5A== Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-5ba84b73b6aso51986eaf.2; Thu, 06 Jun 2024 02:47:57 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUSj4LAAEfXTftXrfLUgFDQFT+jqWwWOT3pJlNfyzblC3ZwKdnA4sk5OOhM9L5CD+bmUndQepZyGZ2LABFY3Tr/MjFOIghdl+er/yqJ0ydXk7PUTLOxETIYAqFngEVeXatKNK8Nr658u6nGqz7hwxTF1frlS29tXbf66AEnbPULV2Mj X-Gm-Message-State: AOJu0Yxz9AbC3YzWVPLPQFfW19YUCO0q+KrowIFOaomXRyGaT148MumD P1hPXaDdQDwX3XsBkdwoBRP4g6ZOmLMzBoNK0me6MUT85MPDLI1cbW7BsCyf/2pU1MwnE8WMMhx NCMi3ZWjebbu2DobZxEr9rwHBMiM= X-Received: by 2002:a4a:dfd8:0:b0:5af:be60:ccdc with SMTP id 006d021491bc7-5ba78d49b7fmr5255602eaf.0.1717667276800; Thu, 06 Jun 2024 02:47:56 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4569763.LvFx2qVVIh@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 6 Jun 2024 11:47:45 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] thermal: core: Do not fail cdev registration because of invalid initial state To: srinivas pandruvada Cc: "Rafael J. Wysocki" , Linux PM , Linux ACPI , LKML , Lukasz Luba , Zhang Rui , Daniel Lezcano , Laura Nao Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 6, 2024 at 5:41=E2=80=AFAM srinivas pandruvada wrote: > > On Wed, 2024-06-05 at 21:17 +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > It is reported that commit 31a0fa0019b0 ("thermal/debugfs: Pass > > cooling > > device state to thermal_debug_cdev_add()") causes the ACPI fan driver > > to fail probing on some systems which turns out to be due to the _FST > > control method returning an invalid value until _FSL is first > > evaluated > > for the given fan. If this happens, the .get_cur_state() cooling > > device > > callback returns an error and __thermal_cooling_device_register() > > fails > > as uses that callback after commit 31a0fa0019b0. > > > > Arguably, _FST should not return an inavlid > s/inavlid/invalid Thanks, I'll fix it up when applying the patch.