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=1796379915; b=DeAcxRfhBL9qDeyc6KJNyYojpRMSEMyuPMcd7Osz/lPWewIwtanjZLmRqk1wcjajSs6R weeugkmWSOmroowjeKTe/xrvPFMv8hymhsZjtC9zOTXotu8QBXzlahwk0KwQ5XecEzGzJ hT2gau/trYtxE6GobCB6KbexNSA896FZEzagPdzXodjDrC/9fvKyUzQI7V2W69jIpllAu 6rvGAgBpLlv9D1uqgcI4a6Yk7G8jVzXTEB00aWDVYk4i29CfK+sZKFOSQofGGF8dZWs0h pQtXgJsubbKUGPKW0quR9lAEiWWffxP1Klx8VfYT6y6ONN+kunFmhtVNULy5b75Jogw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379915; 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=Z+aYMeuWtjfSZsoWzaqDC3at3dSExCTE2z6jRd6zk7o=; b=2FH3Y3jFG2vFH7AwSUG77aJiGgP9abyzupwC8/DIc40QeTrodDdqXqanDMcy8i4vzOwg dVNwbIxa7RV2e781JzzsKToCxm0YWarRg3/1vxGjAb0Dgd17V0yPiAxCz+7bq3XB+ns7n SfVyfd3k4s6D8dLqPY6K/g3dKhvlkbKhRdsNhnw1wkzF21vwh574sWIx/C1kupMLqsOKo U4RnRurGGivus7vq4SEZd5nrZHeRLs6Fn8uW/mt7IQRZEWzxJxLElbiQqXn6f5xWuwtD9 pl+oqh4FIOX7Hs//gMZpD0SMtcGeDT+K79QalZmYUvNthiuc+QK3ba/o3u1LUk/vNCQ== 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=otXE+LA2; 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 E23D6606A322; Fri, 4 Dec 2026 10:25:14 +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=otXE+LA2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CA9E1F000C2; Fri, 4 Dec 2026 10:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379914; bh=Z+aYMeuWtjfSZsoWzaqDC3at3dSExCTE2z6jRd6zk7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=otXE+LA2fbfz3V2Jz5OqOvpSzY6mMcgCzK3yWo/pZgWqyWb0v9K3D1OQYFAWd3PvM g8wpRPJ4pa3jXamDtI4b/uPYFoHQcyxg0HJIgIjdyCAuR8yONB0fx+whzwSd0UzlVL dDwfvFKlsC8b2vUFDGh00BZYtxmyHtESIxHGk48s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeff Johnson Subject: [PATCH 7.3 048/742] Revert "wifi: ath10k: Stop unanswered temperature reads" Date: Fri, 4 Dec 2026 18:58:32 +0900 Message-ID: <20261204100636.343359699@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@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 7.3-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 @@ -2985,7 +2985,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 @@ -75,12 +75,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) { @@ -96,8 +90,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 */