wifi: rtw89: pci: use DBI function for 8852AE/8852BE/8851BE
authorChin-Yen Lee <timlee@realtek.com>
Wed, 3 Jan 2024 01:23:46 +0000 (09:23 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 10 Jan 2024 14:48:40 +0000 (16:48 +0200)
commit9496d62f3877bc0f97b415bc04af98d092878026
tree8e2734ff024382d79e063552dcb3935b74d5cdb7
parent3fbf61207c66ff7ac9b60ab76d4bfd239f97e973
wifi: rtw89: pci: use DBI function for 8852AE/8852BE/8851BE

Sometimes driver can't use kernel API pci_read/write_config_byte
to access the PCI config space of above address 0x100 due to
the negotiated PCI setting. 8852AE/8852BE/8851BE provide another
way called DBI function, which belongs to WiFi mac and could
access all PCI config space for this case.

Link: https://lore.kernel.org/linux-wireless/79fe81b7db7148b9a7da2353c16d70fb@realtek.com/T/#t
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240103012346.6822-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/pci.h