wifi: rtw89: pci: use gen_def pointer to configure mac_{pre,post}_init and clear...
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 1 Nov 2023 07:21:46 +0000 (15:21 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 8 Nov 2023 18:08:58 +0000 (20:08 +0200)
commitbfdcfee3659c6289f391d6eced54b18b244a21ea
tree730c2ba72ea2b065199c6219317f0651d4f7b94e
parent07fabde630a6ce6d0ec791415d3dc3ade858f8c5
wifi: rtw89: pci: use gen_def pointer to configure mac_{pre,post}_init and clear PCI ring index

Use gen_def pointer to call three WiFi 6 specific functions, and add _ax
suffix to them. Then, we will implement functions for WiFi 7 chips later.

The mac_{pre,post}_init are used to initialize PCI during doing MAC
initialization, and clear PCI ring index to make index consistent between
driver, firmware and hardware.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231101072149.21997-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/pci.h