mirror of
https://github.com/armbian/build.git
synced 2025-08-18 21:11:02 +02:00
* Add 88 new patches to series. tag: orange-pi-5.17-20220409-0454 * Fix the applicability of patches.megous to the v5.17.3 kernel * Fix series.conf. Disable the patch that is not being applied * Add support for sun50i-h6-orangepi-3-lts * Check the applicability in the series * Move to a patches.armbian folder * Bananapro: add AXP209 regulators * fix-gpio-kconfig remove if EXPERT to allow normal build * sunxi-5.17: Remove unused patches
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
From 6609068b99f771046852c4c5c65867bbd8863e7c Mon Sep 17 00:00:00 2001
|
|
From: Chia-Yuan Li <leo.li@realtek.com>
|
|
Date: Thu, 17 Mar 2022 13:55:39 +0800
|
|
Subject: [PATCH 503/544] rtw89: disable FW and H2C function if CPU disabled
|
|
|
|
Initialize FW status and disabled H2C function if CPU disabled. Then, it
|
|
can reset to initial state.
|
|
|
|
Signed-off-by: Chia-Yuan Li <leo.li@realtek.com>
|
|
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
|
|
Signed-off-by: Kalle Valo <kvalo@kernel.org>
|
|
Link: https://lore.kernel.org/r/20220317055543.40514-9-pkshih@realtek.com
|
|
---
|
|
drivers/net/wireless/realtek/rtw89/mac.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c
|
|
index 83690656c3e8..e52b0e7b5382 100644
|
|
--- a/drivers/net/wireless/realtek/rtw89/mac.c
|
|
+++ b/drivers/net/wireless/realtek/rtw89/mac.c
|
|
@@ -2685,7 +2685,11 @@ static void rtw89_mac_disable_cpu(struct rtw89_dev *rtwdev)
|
|
clear_bit(RTW89_FLAG_FW_RDY, rtwdev->flags);
|
|
|
|
rtw89_write32_clr(rtwdev, R_AX_PLATFORM_ENABLE, B_AX_WCPU_EN);
|
|
+ rtw89_write32_clr(rtwdev, R_AX_WCPU_FW_CTRL, B_AX_WCPU_FWDL_EN |
|
|
+ B_AX_H2C_PATH_RDY | B_AX_FWDL_PATH_RDY);
|
|
rtw89_write32_clr(rtwdev, R_AX_SYS_CLK_CTRL, B_AX_CPU_CLK_EN);
|
|
+ rtw89_write32_clr(rtwdev, R_AX_PLATFORM_ENABLE, B_AX_PLATFORM_EN);
|
|
+ rtw89_write32_set(rtwdev, R_AX_PLATFORM_ENABLE, B_AX_PLATFORM_EN);
|
|
}
|
|
|
|
static int rtw89_mac_enable_cpu(struct rtw89_dev *rtwdev, u8 boot_reason,
|
|
--
|
|
2.34.1
|
|
|