wifi: rtw89: fw: move polling function of firmware path ready to an individual function
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 1 Sep 2023 07:39:49 +0000 (15:39 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 7 Sep 2023 05:57:14 +0000 (08:57 +0300)
commit80e706a85cb5e1e2121e9bf09dd4098415d85142
treec38ed03d77f0f1381b4107e48fef49caa9f4c4b7
parent6fa25e768df48ccf6d57251eb31d2e496cb374b5
wifi: rtw89: fw: move polling function of firmware path ready to an individual function

To download firmware, we need to check path is ready. There are two kinds
of path -- one is to download firmware header, and the other is to download
firmware body.

Since the polling method is different from WiFi 7 chips, make it to be
an individual function, and then we can reuse the download flow.

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