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=1796386141; b=fTssezKapVPFV6FXmZCEvF60eoBSQvPve2YiPdXhsAJxlFs3WMlyNbRoDrdSbvNQO0qk OONipPZ3QpTUb0pM6bKAsXkE8WbUuUx5EL+j1T6efd1Ui80LNd3+mnGu8AkxHjVPNVgRv yuv5yyoT+6ZQjwi937OyfJfBjU9mCbieMoO5FUkSANIrF6iyuI5iV1Wsp2x1JuvyEYtRb kzoU+oEbCmtlrkmT6I86vapI0ulpO6MMC+bgzL9f61fK6/kZimRsomvX9p3EX3mmesMmJ BQWR8D00n4sWIKh8J60F05A8xkb0GnMwttufiQWm+yujfvquP4EOzoJRpKKplZ5Ow3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386141; 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=1epB+s5PdKDHbjjvSVe3RGhKSPRoIy/B5nKoIvHaR4I=; b=MqiIDgL/I20BJnlCKvbAczU6wj8ZJptpU9QaRva88S0TKi5S7q4KU1Ygoq3X/Vz4ieY9 rZaejUujpAmXUQaMYMaVKR34YEEeR88DZNEFU6ogvIPZx7U1CyrSN22h6Gkdscm/L0+ed 9WKW60pKQND+xj/Yi0HT6ql8QsZYQzis7ESbnVFr+XjHTdddV/XAy+JFQVO1HDih2JNhj 8sw/wP+D0yJ76Ci4y4wXsrI6tDd2ABeDQMeBjX/ElbZkXejFPkGJ3Tp8uv/7shMcYUvFB NJawFzBR/WSGsazs68YD4emVQw+mgY0PrrYMQOuCgzdTbwf8ndb8F/5Tq3SUVnhao/A== 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=nGm2u5r7; 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 A4681606A32C; Fri, 4 Dec 2026 12:09:01 +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=nGm2u5r7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDD151F00934; Fri, 4 Dec 2026 12:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796386141; bh=1epB+s5PdKDHbjjvSVe3RGhKSPRoIy/B5nKoIvHaR4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nGm2u5r7se8Pw3PF6c5mwESHWvcFNrmo0DcjtfGNXdpKiDHXnOAcOId5H3sWQ2rqY ArCJg9JTHURPo9Xe7pGRiGhgznRvcTsTiACGuyvslOuME8FCpJPTkV0d6/KshuKwy4 l8mSjidWYmuesQCAXQi/EIxDTumdAUE01o5pHU1g= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeff Johnson Subject: [PATCH 6.6 0843/1167] Revert "wifi: ath10k: Stop unanswered temperature reads" Date: Fri, 4 Dec 2026 19:04:30 +0900 Message-ID: <20261204100724.077932238@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 @@ -2927,7 +2927,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 */