8852BE-VT is an new chip driven from 8852BE, and WiFi features are almost the same, so many codes can be shared. Move them to a common kernel module. Considering chip ID, driver defines RTL8852BT, and combine abbreviation of HCI interface (e.g. 'E' for PCIE) to be 8852BTE, which driver uses only. For marketing, 8852BTE is named as 8852BE-VT. Ping-Ke Shih (3): wifi: rtw89: 8852bx: move common code from 8852b to 8852b_common wifi: rtw89: 8852bx: add extra handles for 8852BT in 8852b_common wifi: rtw89: 885xbx: apply common settings to 8851B, 8852B and 8852BT drivers/net/wireless/realtek/rtw89/Kconfig | 4 + drivers/net/wireless/realtek/rtw89/Makefile | 6 +- drivers/net/wireless/realtek/rtw89/cam.c | 1 + drivers/net/wireless/realtek/rtw89/coex.c | 3 +- drivers/net/wireless/realtek/rtw89/core.c | 2 +- drivers/net/wireless/realtek/rtw89/core.h | 11 + drivers/net/wireless/realtek/rtw89/debug.c | 2 +- drivers/net/wireless/realtek/rtw89/mac.c | 43 +- drivers/net/wireless/realtek/rtw89/pci.c | 38 +- drivers/net/wireless/realtek/rtw89/phy.c | 2 +- drivers/net/wireless/realtek/rtw89/phy.h | 1 + drivers/net/wireless/realtek/rtw89/reg.h | 8 + drivers/net/wireless/realtek/rtw89/rtw8852b.c | 1691 +-------------- drivers/net/wireless/realtek/rtw89/rtw8852b.h | 122 -- .../wireless/realtek/rtw89/rtw8852b_common.c | 1880 +++++++++++++++++ .../wireless/realtek/rtw89/rtw8852b_common.h | 346 +++ .../net/wireless/realtek/rtw89/rtw8852b_rfk.c | 19 +- drivers/net/wireless/realtek/rtw89/util.c | 106 + drivers/net/wireless/realtek/rtw89/util.h | 5 + 19 files changed, 2443 insertions(+), 1847 deletions(-) create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852b_common.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852b_common.h create mode 100644 drivers/net/wireless/realtek/rtw89/util.c -- 2.25.1