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=1796383240; b=a28dkd8RJmIx/O6xI5ZnyOCamD8VxC+6jpP+EXnsh4W2XSYCHrgcUL2bHkOebMycC1uO jjl5+i+h+QsLKhGMzl4I2lkkLp9xYoap4BB+3Gjs0DecjZXqoLxYKkrE1WNJOgFPW9hgl EaERJpPtb0WgAsL3bqQCgljJLQVQ1jVHYH5qyVnLgFf4gzHjLHRavhNYwwJBeEpk57Mnz nxjgQK96yj6IKGEEZuiLdtXNMS1QgvY9QYKXiLAIXjyBUSf8CA3kLhIv50lEzvhf3cQgQ 4bkdGjlUt/8UPoHkLSc64H4+ntgKM4BWdjOho5G9kL1YPDybBXRSEHg6+fGeX+rCVNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383240; 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=Wb7jP2mZiyc8Bz7WjCWet+MvNGJvvmPv5cLnhYqvknE=; b=udsds5eSI4vE2B70iSPRZnzJB/1tsV1xYEL7lpKtIGL8XvizAQ043iKoLGl9ZnpCiYkj 6on3Sgh9fSCUl0qLMxwi31ymP3LdlywkyS2Yr4TdtwcGNMnZfAinsyW1D5y2EkxfKglYD zPHeFrFL4A/d8XsHIDFecuNC0sStAVDiWxqPAgFraMWalelEL2FfxJOFAzGsV8b1FOizQ WJf5Lexk8fnI1KLWVezfUmAtPJvb2naBtE3vU6fK/1QCLgSjh2SBchB80MRJ3fTgPxR0I spDT7QdbnBzyctxT503aONPBhsBCzw+B8gku6xfIvKvbvK9qrkuqGeBCdBVoYGYlBCw== 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=w3v5ITjz; 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 A5CB5606A32F; Fri, 4 Dec 2026 11:20:40 +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=w3v5ITjz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FBB61F000CE; Fri, 4 Dec 2026 11:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383240; bh=Wb7jP2mZiyc8Bz7WjCWet+MvNGJvvmPv5cLnhYqvknE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=w3v5ITjzMcMZTe91SFDCgKUYZa0GyhFri03Wz9IvjGQ4p8FzIri64/ZEESC60KY38 rwhqTYxXQNStWEyhuJwguWARrMSXnmajmKo1X5M/KdMnG/IJawiJjoQxMorbFEdn+p gZZpio+5Zy1tzY0MwpQdzIhaw9n+Zzb7k77P1by8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeff Johnson Subject: [PATCH 6.12 143/555] Revert "wifi: ath10k: Stop unanswered temperature reads" Date: Fri, 4 Dec 2026 19:03:06 +0900 Message-ID: <20261204100613.222905452@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-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 @@ -2979,7 +2979,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 */