projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61ebeec
)
rtw89: Turn on CR protection of CMAC
author
Ping-Ke Shih
<pkshih@realtek.com>
Fri, 25 Mar 2022 06:00:50 +0000
(14:00 +0800)
committer
Kalle Valo
<kvalo@kernel.org>
Wed, 6 Apr 2022 08:55:14 +0000
(11:55 +0300)
CMAC is Control MAC, and this patch is to turn on CR (control registers)
protection.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/20220325060055.58482-12-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw89/mac.c
b/drivers/net/wireless/realtek/rtw89/mac.c
index 280db2f3f89b0fe4ec2bd3f13607c1f5de8c748a..6498df52ace9df4cfe45b3ba43ca5fa9d909a6c6 100644
(file)
--- a/
drivers/net/wireless/realtek/rtw89/mac.c
+++ b/
drivers/net/wireless/realtek/rtw89/mac.c
@@
-1114,7
+1114,8
@@
static int cmac_func_en(struct rtw89_dev *rtwdev, u8 mac_idx, bool en)
func_en = B_AX_CMAC_EN | B_AX_CMAC_TXEN | B_AX_CMAC_RXEN |
B_AX_PHYINTF_EN | B_AX_CMAC_DMA_EN | B_AX_PTCLTOP_EN |
- B_AX_SCHEDULER_EN | B_AX_TMAC_EN | B_AX_RMAC_EN;
+ B_AX_SCHEDULER_EN | B_AX_TMAC_EN | B_AX_RMAC_EN |
+ B_AX_CMAC_CRPRT;
ck_en = B_AX_CMAC_CKEN | B_AX_PHYINTF_CKEN | B_AX_CMAC_DMA_CKEN |
B_AX_PTCLTOP_CKEN | B_AX_SCHEDULER_CKEN | B_AX_TMAC_CKEN |
B_AX_RMAC_CKEN;