Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp867411imw; Thu, 14 Jul 2022 12:21:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzp8tbqkWF8Z3KPU87GWrhaaNGqXh3tyVOiqM7p15r8EUssSdm9wU5SLS/K/4Tv/qyOafV X-Received: by 2002:a17:902:cece:b0:16c:3683:8835 with SMTP id d14-20020a170902cece00b0016c36838835mr9970746plg.104.1657826500186; Thu, 14 Jul 2022 12:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657826500; cv=none; d=google.com; s=arc-20160816; b=zXCQaXT41g4xXuLsgIten1JGRQKC+zHGk9vubW/czoyINf9Q9UnrDXkTYq5ipCWGbY mwYommWm/j5fo2lbTKGEXxNxtN7zhCiQpByJZTo3iTVPoWYexvh5ILXlHPw4/ly+LxJL K6wae/rJ7zd6Yep0yORvweoQG3LR2Kx4y2wBIJRO6zHP5z+LnSkAR9RbGnYeJwXp+NGF vpbO2JFIIXAdA+AS4Rpag5iau9G1D7tMLhIh94bcPRirtQrTtv9LDmDEmishtl29jS4K DKur1WDf8oNHxhevQ8dwk3vI6oHiO1Lv1Lc5cFJfE9RsBOe7hmn0eAAX8f9gs7OrYBr0 ZqTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=PrVa9z2hP3TkY63iEtJnEldbu1EDQpIgqXFSqcCcEag=; b=wRWAJ8aAd5XrI6saOsxvG4Qi2E08X5a+UKfTO07MOms5pYdpz+4s/jgbcwD+4pIsbC zgft2PR+O5FKuXPMjSXPwmYzB4AV0fsnq97Q4az0wBAehAELi4vjRGRiTw7xatkBCYJm rS/xV97twHMj9rklGszi50BzsspUVUBsQHpy8kJuflwrT9nJIbUkTwjmSBFxkTsaNnkr Sf5y8bE7kIrJmK9H7pXNR7qZeBaNJX6yMslJkl7Zl5w8oWxwwSOy6zowKTafBeTDrBue +jdb3GLAEIydrpJJNZ3bJwchnNd/VFA+tq62r7n0sjgZrsW3wLnjpi9qYzX+l3JdKImF b0Dg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a63f112000000b00419ae71dafasi2731730pgi.444.2022.07.14.12.21.24; Thu, 14 Jul 2022 12:21:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232564AbiGNTLc (ORCPT + 99 others); Thu, 14 Jul 2022 15:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232283AbiGNTLb (ORCPT ); Thu, 14 Jul 2022 15:11:31 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22B7723BD4; Thu, 14 Jul 2022 12:11:29 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.0.0) id d548e557d55f423d; Thu, 14 Jul 2022 21:11:27 +0200 Received: from kreacher.localnet (unknown [213.134.162.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id F212C66CC26; Thu, 14 Jul 2022 21:11:26 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux PM Cc: Linux ACPI , LKML , Zhang Rui , Mario Limonciello , Srinivas Pandruvada Subject: [PATCH] intel: thermal: PCH: Drop ACPI_FADT_LOW_POWER_S0 check Date: Thu, 14 Jul 2022 21:11:26 +0200 Message-ID: <12013659.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.162.64 X-CLIENT-HOSTNAME: 213.134.162.64 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrudejledgudefhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpeffffffkefgheehffelteeiveeffeevhfelteejvddvieejjeelvdeiheeuveeuffenucfkphepvddufedrudefgedrudeivddrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhuihdriihhrghnghesihhnthgvlhdrtghomhdprhgtphhtthhopehm rghrihhordhlihhmohhntghivghllhhosegrmhgurdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 From: Rafael J. Wysocki If ACPI_FADT_LOW_POWER_S0 is not set, this doesn't mean that low-power S0 idle is not usable. It merely means that using S3 on the given system is more beneficial from the energy saving perspective than using low-power S0 idle, as long as S3 is supported. Suspend-to-idle is still a valid suspend mode if ACPI_FADT_LOW_POWER_S0 is not set and the pm_suspend_via_firmware() check in pch_wpt_suspend() is sufficient to distinguish suspend-to-idle from S3, so drop the confusing ACPI_FADT_LOW_POWER_S0 check. Signed-off-by: Rafael J. Wysocki --- drivers/thermal/intel/intel_pch_thermal.c | 8 -------- 1 file changed, 8 deletions(-) Index: linux-pm/drivers/thermal/intel/intel_pch_thermal.c =================================================================== --- linux-pm.orig/drivers/thermal/intel/intel_pch_thermal.c +++ linux-pm/drivers/thermal/intel/intel_pch_thermal.c @@ -207,14 +207,6 @@ static int pch_wpt_suspend(struct pch_th return 0; } - /* Do not check temperature if it is not a S0ix capable platform */ -#ifdef CONFIG_ACPI - if (!(acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0)) - return 0; -#else - return 0; -#endif - /* Do not check temperature if it is not s2idle */ if (pm_suspend_via_firmware()) return 0;