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=1796381641; b=CqUReiH0evsqD8MDSTsDICcmka/r1tqQHWaWpQDLPnTLjh1xnZiZ4T08XdtGMyUMynDC pc925Xo+xtFI1Dkl7hGsV4pYdwSRp42vo1MQ3TKfLMUjglAG8I7DNEAEZloh7edtI/Xu+ YqJgoxKONttFT0nhybHzbPLhOc9biSjVsPO4dVTIR+jO1PKLlZ9QJflJJCzcAMIwlfaLJ YhS9MbQBwn+zatSSCEosD9HzF0jJIfu1sNK1nd505zYj/A1woSWD5uSyN7FVsvVhXHNe4 Rh9rH0QHfmNLpJqEMq73sE/BU7/nEEB7Cqo5wkse56uaE6GrZoXpFLqOo7G+x2niR3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381641; 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=c5Oi0zVSBc0bHFMbLtlUlY/vMpf72NYSXp0FpuZrBl0=; b=v1aS9nyIsQWVAuFhy/c6MMD9m6Y987yRaKpGxt6WJhvGlk+GVwdXOQGuuHBglRMqhAvt WYtcNVan0NVKbpR1JEiAzihddVPw7zOzcP+zEp8y8sSxe7+4f/naQ6SDTxzaAtvLswK+X tbs/Hs6TsdetUGbMFXTtj+l7KpOxLDzYtV92qUtLKM3xKHw4D5b9nxsJ0pyVveFUcuyyt ay34iWQaMdDIihcMjaIh3kjblhsY1uknPaVgYcVJRVHoCbgqL5IrJReSeKErOhESpFIjF OTOgjT8yvI6RBgOfsF0kaaNtarMXs3H/ATA7Mc4sQN1Q12XAIJ2RNSYNXO56k0z/1mg== 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=emC+XcLl; 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 C6810606A338; Fri, 4 Dec 2026 10:54: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=emC+XcLl Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CC561F000C2; Fri, 4 Dec 2026 10:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381641; bh=c5Oi0zVSBc0bHFMbLtlUlY/vMpf72NYSXp0FpuZrBl0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=emC+XcLls7JGkmz4Ug/cV/MnKJ7+vfV92Pt1SvCx5lXPmm7FqG0gAXjoRYAR4vAh7 vGu0M2BWOfLtFSxN+kbkaosNTJQMYq5Kb8LbdyDDGheZeZZu/trQJlIceQnboMaprX 1jPaNTDuyVZ4URKSmyt01SQ8aOlzh5ElE2UK6mys= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeff Johnson Subject: [PATCH 6.18 112/703] Revert "wifi: ath10k: Stop unanswered temperature reads" Date: Fri, 4 Dec 2026 19:00:11 +0900 Message-ID: <20261204100630.786491119@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@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.18-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 @@ -2986,7 +2986,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 */