From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796388834; b=Dm54Sn/Wm2mWrwLCVyyoGCB4vupo16T+TuHL/M1KcqE7qsD4HYIUECLxbfqUtZn3asBv jnyJWPTXB21iX0q8GcXm2pTzJtAwMRbLL5qMFKPxk+zuPJA8ASjKMYvkQK+gX89k2z0xs y1sr2zQF8pn5D1xOcebzoxYWcrjfHkXPXaQ2dtkH3OFcgh5nS1K42ycCscf7c0UJaS6Xt WWc1KKUQbQfzscLYm7Prt546k3C4Qm6u0QQ7QNu+wLuT+507ZMRTMx2fvL5rj/G2DWmHB DBXYCX52bGnIOnFaXa37aK03fWHVxSdxHYvJUfAtQFE2iGlNetxZ+0kalrzUo9ZpNHA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388834; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=fyVpWBaNo8+MQZFr05MMYJTJsMZZ+rVesmzJbcPplso=; b=oripjvrxy9JcWrvZnXgAPeFXanYqO9Ieu2vOz34PV9kgpgTMevKRVaKnTeg1IRFgMNTh HCoN8KmUSBrHdGb+WSavgWVIiMMIFpt6w9F0heUgJzMTU6Bt7QXWyWY3EvYkPgr5EoDt7 /KnL0S4HhCxjH3ods3aJJ3rNSsfTwJWidDiIJ3EQ9nEdgYVuwA+1y1ppDvMYbY0P0MVg7 d/mUWrvU2qjtJjjmx3GbqruSpU18gG3/7+YPi6LyGQPfcjrhKpTqX4lIUwlXUjE0Sgn22 rIBfnmCEdQ3Xdufz7kgm2zOIawCARB4W+lkNI+Zqm5V5wAZ9s4G6SzhH6a30Ex7PFxA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Fk7mWGAR; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB4D8606A33B; Fri, 4 Dec 2026 12:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Fk7mWGAR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AFC51F000C2; Fri, 4 Dec 2026 12:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796388833; bh=fyVpWBaNo8+MQZFr05MMYJTJsMZZ+rVesmzJbcPplso=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Fk7mWGARbW2FNLsHHfaweufsMNZU6GXjUQxN2BZ1hmLxpWlb3qRvWgzqCRELm+w0v wpA5c55IK1f0tzrLAISvRoOXLRdXQCZB6vqSVZW5FFy7KT1Qr8w/LSNYhDhLpskn1w GehmM9d2bwX8lSZ1Zj/lUxWzD/ZXkJnwy96bozoA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeff Johnson Subject: [PATCH 6.1 0770/1059] Revert "wifi: ath10k: Stop unanswered temperature reads" Date: Fri, 4 Dec 2026 19:05:01 +0900 Message-ID: <20261204100703.953006046@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jeff Johnson commit b1ed5a45b994a6473ca1cf34f35a1bf87f1d8e2a upstream. As reported by Nicolas Escande [1] this will break some setups where temperature reporting is supported but there are occasional requests where there isn't a response. Revert this implementation where a single unreported temperature read at any time will stop all future requests. Alternate solutions are being discussed. Link: https://lore.kernel.org/all/DMRPC2GCD51O.S4DMHZFDKRFG@gmail.com/ # [1] Signed-off-by: Jeff Johnson Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/core.c | 1 - drivers/net/wireless/ath/ath10k/thermal.c | 9 +-------- drivers/net/wireless/ath/ath10k/thermal.h | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -2926,7 +2926,6 @@ int ath10k_core_start(struct ath10k *ar, clear_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags); ar->running_fw = fw; - ar->thermal.broken = false; if (!test_bit(ATH10K_FW_FEATURE_NON_BMI, ar->running_fw->fw_file.fw_features)) { --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -74,12 +74,6 @@ static ssize_t ath10k_thermal_show_temp( goto out; } - /* Don't stall every read on firmware that never answers */ - if (ar->thermal.broken) { - ret = -EOPNOTSUPP; - goto out; - } - reinit_completion(&ar->thermal.wmi_sync); ret = ath10k_wmi_pdev_get_temperature(ar); if (ret) { @@ -95,8 +89,7 @@ static ssize_t ath10k_thermal_show_temp( time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, ATH10K_THERMAL_SYNC_TIMEOUT_HZ); if (!time_left) { - ath10k_warn(ar, "failed to synchronize thermal read, not asking again until the firmware restarts\n"); - ar->thermal.broken = true; + ath10k_warn(ar, "failed to synchronize thermal read\n"); ret = -ETIMEDOUT; goto out; } --- a/drivers/net/wireless/ath/ath10k/thermal.h +++ b/drivers/net/wireless/ath/ath10k/thermal.h @@ -19,8 +19,6 @@ struct ath10k_thermal { /* protected by conf_mutex */ u32 throttle_state; u32 quiet_period; - /* the running firmware did not answer a temperature request */ - bool broken; /* temperature value in Celsius degree * protected by data_lock */