From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E41427707 for ; Thu, 25 Jun 2026 06:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782368231; cv=none; b=rhVjBAQPBG4IfxbXXqtGv5udrlgLTURuIPVoMd/BZd3uY3xU4iLWSdBPOFlJfS4F2ooPRGuBM5Flq/Q6QipbCHCON/4393N7fko8Lw3HLQHMrvpTu2wHi3bzs+CyTRYSHEqs9O0rg5W9Ac0iCxvwWZN30nn38NFzZhyfnPVDVCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782368231; c=relaxed/simple; bh=KYa7m112llDj5tMp8z6Qe1Pzctdiu9QF71TACiLWPec=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=vDb0I97SFW3UgRtoIj3UChBxcZF0NPuiH5hu1rQcYWTdKgQblfhN1f9QBBsleQ50velIpm0vjheAJweHHu4hVK9f4sAX4UE6NWCWEMGfYT/P1TqtCSAMY7QHSzmZrHSGFpVIS0US6Yv6cZPHkhlU8vIqKFrZUIH10AYFKdcVj1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b=uDa1t1nj; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b="uDa1t1nj" X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 65P6H7qY4584430, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1782368228; bh=d3Z3NNlSb9Xqb/Z8j+Dtf94tgMA3JIs2ACAKBv76lVs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type; b=uDa1t1njfm6+Thi4oVIxghJMEAbdFc/yugC2nxtiu9dLfyoyiUgC3KnxVbEKbPXlj 4/hkWeX9fIGTXkbFH///ixkHKMOi9bC0juAcj2ElKzjxM8y3p5LFk/KNq6yh0pOHUq XcD/2BrTECI3QluzNW2q6Krh70PJS4Qjyb2GWvumIEgyFgOdX+4Sy/ArmL1QnyBWC/ cUG3v5QyAcGfD2kFHijVd45R3/DMFqG8pYd+indbjp8eVVuWgBVpera+nYz3J7zcGq n6hNdDmPx7omCyKRRESX2U4vOtuZVzqSwy5FJGfTWnUyKtNo3rdd61tPEQy50h7Om5 Hrt/WzrIBTQTg== Received: from mail.realtek.com (rtkexhmbs03.realtek.com.tw[10.21.1.53]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 65P6H7qY4584430 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 25 Jun 2026 14:17:07 +0800 Received: from RTKEXHMBS05.realtek.com.tw (10.21.1.55) by RTKEXHMBS03.realtek.com.tw (10.21.1.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Thu, 25 Jun 2026 14:17:08 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS05.realtek.com.tw (10.21.1.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Thu, 25 Jun 2026 14:17:07 +0800 Received: from [127.0.1.1] (172.21.40.75) by RTKEXHMBS06.realtek.com.tw (10.21.1.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17 via Frontend Transport; Thu, 25 Jun 2026 14:17:07 +0800 From: Ping-Ke Shih To: CC: , , , Subject: [PATCH rtw-next 06/10] wifi: rtw89: pci: disable phy error flag related to refclk Date: Thu, 25 Jun 2026 14:15:41 +0800 Message-ID: <20260625061545.44808-7-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260625061545.44808-1-pkshih@realtek.com> References: <20260625061545.44808-1-pkshih@realtek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain From: Chih-Kang Chang On some platforms, refclk is not available up to 15 ms after entering suspend. The delayed clock cause the hardware to detect falsely error and trigger an unexpected hardware reset. Disable the phy error flag related to refclk to fix it. Signed-off-by: Chih-Kang Chang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/pci.h b/drivers/net/wireless/realtek/rtw89/pci.h index c3f2d0df5846..92c30c7f9fb2 100644 --- a/drivers/net/wireless/realtek/rtw89/pci.h +++ b/drivers/net/wireless/realtek/rtw89/pci.h @@ -58,7 +58,7 @@ #define B_AX_DIV GENMASK(15, 14) #define RAC_SET_PPR_V1 0x31 #define RAC_ANA40 0x40 -#define PHY_ERR_IMR_DIS (BIT(9) | BIT(8) | BIT(0)) +#define PHY_ERR_IMR_DIS (BIT(9) | BIT(2) | BIT(1) | BIT(0)) #define RAC_ANA41 0x41 #define PHY_ERR_FLAG_EN BIT(6) -- 2.25.1