mbox series

[0/3] wifi: rtw89: improve firmware code to be backward compatible with old driver

Message ID 20230320130606.20777-1-pkshih@realtek.com (mailing list archive)
Headers show
Series wifi: rtw89: improve firmware code to be backward compatible with old driver | expand

Message

Ping-Ke Shih March 20, 2023, 1:06 p.m. UTC
Patch 1/3 and 2/3 are to refine code related to firmware. Among them,
patch 2/3 is to use schedule_work() to load firmware, so it will be
simpler to load more firmware and files in the future. The upcoming files
include predefined format string of firmware log, another MCU firmware
of WiFi 7 chip, and so on. I will explain them when we submit the patch.

Patch 3/3 is to be backward compatible with old driver. Currently, only
8852b support firmware-1.bin, and other can support more, like
firmware-2.bin and firmware-3.bin.

Supported matrix is listed below:
                    dirver-0    driver-1    driver-2
 firmware.bin          O           o           o
 firmware-1.bin        x           O           o
 firmware-2.bin        x           x           O

 Big-O: MODULE_FIRMWARE()
 small-o: supported firmware
 x: driver doesn't try to load

This patchset is based on two other patchsets:
 - "[PATCH v2] wifi: rtw89: add counters of register-based H2C/C2H"
 - "[PATCH v4 0/5] wifi: rtw89: preparation of multiple interface concurrency support"

Ping-Ke Shih (2):
  wifi: rtw89: use schedule_work to request firmware
  wifi: rtw89: add firmware format version to backward compatible with
    older drivers

Zong-Zhe Yang (1):
  wifi: rtw89: fw: use generic flow to set/check features

 drivers/net/wireless/realtek/rtw89/core.c     |  27 ++--
 drivers/net/wireless/realtek/rtw89/core.h     |  12 +-
 drivers/net/wireless/realtek/rtw89/fw.c       | 138 +++++++++---------
 drivers/net/wireless/realtek/rtw89/fw.h       |  14 +-
 drivers/net/wireless/realtek/rtw89/rtw8852a.c |  10 +-
 drivers/net/wireless/realtek/rtw89/rtw8852b.c |  10 +-
 drivers/net/wireless/realtek/rtw89/rtw8852c.c |  10 +-
 7 files changed, 132 insertions(+), 89 deletions(-)