mbox series

[v2,00/13] rtw89: generalize functions shared with 8852CE

Message ID 20220307060457.56789-1-pkshih@realtek.com
Headers show
Series rtw89: generalize functions shared with 8852CE | expand

Message

Ping-Ke Shih March 7, 2022, 6:04 a.m. UTC
The existing common flow can share with 8852CE, so I add chip_info and
chip_ops to share the functions that doesn't change the behavior of
existing chip 8852AE.

In this patchset, I add 8852c files and add chip_info/chip_ops along with
the process to generalize functions. But, I don't build the files, because
it doesn't work unless I have all necessary chip information and functions.

No function dependency, but this patchset is based on another patchset
"rtw89: support hw_scan and tx_wake firmware features".

v2: only patch 6/13 is changed -- define descriptive names to replace some
    magic numbers.

Ping-Ke Shih (13):
  rtw89: 8852c: add 8852c empty files
  rtw89: pci: add struct rtw89_pci_info
  rtw89: pci: add V1 of PCI channel address
  rtw89: pci: use a struct to describe all registers address related to
    DMA channel
  rtw89: read chip version depends on chip ID
  rtw89: add power_{on/off}_func
  rtw89: add hci_func_en_addr to support variant generation
  rtw89: add chip_info::{h2c,c2h}_reg to support more chips
  rtw89: add page_regs to handle v1 chips
  rtw89: 8852c: add chip::dle_mem
  rtw89: support DAV efuse reading operation
  rtw89: 8852c: process efuse of phycap
  rtw89: 8852c: process logic efuse map

 drivers/net/wireless/realtek/rtw89/core.c     |   3 +-
 drivers/net/wireless/realtek/rtw89/core.h     |  38 ++
 drivers/net/wireless/realtek/rtw89/efuse.c    | 160 +++++-
 drivers/net/wireless/realtek/rtw89/fw.c       |  20 +-
 drivers/net/wireless/realtek/rtw89/mac.c      | 184 ++++++-
 drivers/net/wireless/realtek/rtw89/mac.h      |  48 ++
 drivers/net/wireless/realtek/rtw89/pci.c      | 200 ++++----
 drivers/net/wireless/realtek/rtw89/pci.h      |  76 ++-
 drivers/net/wireless/realtek/rtw89/reg.h      | 121 +++++
 drivers/net/wireless/realtek/rtw89/rtw8852a.c |  36 ++
 .../net/wireless/realtek/rtw89/rtw8852ae.c    |   7 +
 drivers/net/wireless/realtek/rtw89/rtw8852c.c | 479 ++++++++++++++++++
 drivers/net/wireless/realtek/rtw89/rtw8852c.h |  76 +++
 .../net/wireless/realtek/rtw89/rtw8852ce.c    |  43 ++
 14 files changed, 1349 insertions(+), 142 deletions(-)
 create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852c.c
 create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852c.h
 create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852ce.c