From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E990423782; Thu, 30 Jul 2026 15:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785425779; cv=none; b=S8EpGYL3fLQpZOjxJFGv2c0LjCsF+96U/0oentdpmU2YZUC3p7BR8cZuzL5+nM28rU/lYJaTs6DKOqSQx+Xv55n2ClkpsF5H2Xf32S0vrEw1wCVGs6GBt/1sQljSXJx8ePpb61qhW93W6QffV9S0HITOlHrEAqO4NKE6dZTHryY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785425779; c=relaxed/simple; bh=I5987ETS7UnY1nu6ZnrgOyy/I/Zkw43ULsvw1S0ywEc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tK+Oc3Ko1laz8T/m16kcpC48fwzpioePpehSrLQjb/7TBGr2GPLatRTMh3Rs63qMADHsHdEZvJiySX693J+wULO5xJKJKi0Nmmv28lpG8n9FVtMhs4ttGpox2q2BXy31LnYf+5Oul0GcZtiY1ZWCrtQmAtdI/vWOMBdTZdks+CI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S86qYvte; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="S86qYvte" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69BAC1F000E9; Thu, 30 Jul 2026 15:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785425778; bh=MFJC9CFqfG5ar2sBG1RQjDaDnUOK9ShMIqAhhZQYqBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=S86qYvte1FuQLyO0Hf/7r3kdzT7LI8QQ8oJ/nXSixPU/ohyD2iB0tAjN+q4psvmTT VwFh0z+BSUQDpZWRUWUaFzXjZlmdzk5Famqbw/Z8eli65yL3Mzgpj7ThosV4WWcVz1 zyjEHeVsfdl4HDOTJY1ms8+NAJTV4n99CJcThfu8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alex Williamson , Manivannan Sadhasivam , Baochen Qiang , Raj Kumar Bhagat , Jeff Johnson , Sasha Levin Subject: [PATCH 6.12 144/602] wifi: ath12k: Flush the posted write after writing to PCIE_SOC_GLOBAL_RESET Date: Thu, 30 Jul 2026 16:08:56 +0200 Message-ID: <20260730141439.006585221@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141435.976815864@linuxfoundation.org> References: <20260730141435.976815864@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Manivannan Sadhasivam [ Upstream commit 55f3aa06951cac78b0206bde961c8cf11929a27a ] ath12k_pci_soc_global_reset() tries to reset the device by writing to the PCIE_SOC_GLOBAL_RESET register. But it doesn't do a read-back to ensure that the write gets flushed to the device before the delay. This may lead to the delay on the host to be insufficient, if the posted write doesn't reach the device before the delay. So add a read-back after writing to the PCIE_SOC_GLOBAL_RESET register and before the delay. Compile tested only. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1 Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") Reported-by: Alex Williamson Closes: https://lore.kernel.org/linux-pci/20260622160822.09350246@shazbot.org Signed-off-by: Manivannan Sadhasivam Reviewed-by: Baochen Qiang Reviewed-by: Raj Kumar Bhagat Tested-by: Raj Kumar Bhagat Link: https://patch.msgid.link/20260623141649.41087-2-manivannan.sadhasivam@oss.qualcomm.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath12k/pci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/ath/ath12k/pci.c index 0ac92a606cea0c..4ba0c1bb32341b 100644 --- a/drivers/net/wireless/ath/ath12k/pci.c +++ b/drivers/net/wireless/ath/ath12k/pci.c @@ -225,6 +225,8 @@ static void ath12k_pci_soc_global_reset(struct ath12k_base *ab) val |= PCIE_SOC_GLOBAL_RESET_V; ath12k_pci_write32(ab, PCIE_SOC_GLOBAL_RESET, val); + /* Flush the posted write to the device */ + ath12k_pci_read32(ab, PCIE_SOC_GLOBAL_RESET); /* TODO: exact time to sleep is uncertain */ delay = 10; @@ -234,6 +236,8 @@ static void ath12k_pci_soc_global_reset(struct ath12k_base *ab) val &= ~PCIE_SOC_GLOBAL_RESET_V; ath12k_pci_write32(ab, PCIE_SOC_GLOBAL_RESET, val); + /* Flush the posted write to the device */ + ath12k_pci_read32(ab, PCIE_SOC_GLOBAL_RESET); mdelay(delay); -- 2.53.0