mbox series

[0/6] wifi: rtw89: adjust mac init code to support WiFi 7 chips

Message ID 20231211083341.118047-1-pkshih@realtek.com
Headers show
Series wifi: rtw89: adjust mac init code to support WiFi 7 chips | expand

Message

Ping-Ke Shih Dec. 11, 2023, 8:33 a.m. UTC
The mac initial code is different between WiFi 6 and 7 chips, so add
suffix _ax for WiFi 6 chips, and export shared functions. For WiFi 7, the
code to initialize MAC is a little big, so I defer the patches to next
submission.

Other stuffs are to add necessary API used by initial flow. Include
XTAL SI to control analog hardware, driver flags to reflect CMAC/DMAC
status, DBCC H2C command to notify firmware current MAC quota mode, and
avoid to additionally reset BB/RF while starting.

Ping-Ke Shih (6):
  wifi: rtw89: add XTAL SI for WiFi 7 chips
  wifi: rtw89: 8922a: add power on/off functions
  wifi: rtw89: mac: add flags to check if CMAC and DMAC are enabled
  wifi: rtw89: mac: add suffix _ax to MAC functions
  wifi: rtw89: add DBCC H2C to notify firmware the status
  wifi: rtw89: only reset BB/RF for existing WiFi 6 chips while starting
    up

 drivers/net/wireless/realtek/rtw89/core.c     |   5 +-
 drivers/net/wireless/realtek/rtw89/core.h     |   3 +
 drivers/net/wireless/realtek/rtw89/fw.c       |  35 +++
 drivers/net/wireless/realtek/rtw89/fw.h       |   8 +
 drivers/net/wireless/realtek/rtw89/mac.c      | 184 +++++++-------
 drivers/net/wireless/realtek/rtw89/mac.h      |  71 +++++-
 drivers/net/wireless/realtek/rtw89/mac_be.c   |  71 ++++++
 drivers/net/wireless/realtek/rtw89/reg.h      | 176 +++++++++++++
 drivers/net/wireless/realtek/rtw89/rtw8922a.c | 237 ++++++++++++++++++
 drivers/net/wireless/realtek/rtw89/wow.c      |   7 +-
 10 files changed, 699 insertions(+), 98 deletions(-)