From: Yan-Hsuan Chuang <yhchuang@xxxxxxxxxxx> Add power on related functions for 8723D, whuch should switch mac power, download firmware, and initialize mac/bb/rf. The 8723D devices don't have H2C queue, so we should skip them, by recognize that the device is for 802.11n. Because the other 802.11ac devices have H2C queue to send command to firmware. The 8723D devices use a different way to download firmware, so add a legacy firmware download routine. While the 8723D devices don't have H2C queue, and also the TRX FIFO is smaller, we cannot organize the TRX FIFO as the other 802.11ac devices (8723D has less queues can be mapped). v1 -> v2 * make a patchset contains less patches for review Ping-Ke Shih (8): rtw88: add legacy firmware download for 8723D devices rtw88: no need to send additional information to legacy firmware rtw88: 8723d: Add mac power-on/-off function rtw88: decompose while(1) loop of power sequence polling command rtw88: 8723d: 11N chips don't support H2C queue rtw88: 8723d: implement set_tx_power_index ops rtw88: 8723d: Organize chip TX/RX FIFO rtw88: 8723d: initialize mac/bb/rf basic functions drivers/net/wireless/realtek/rtw88/fw.c | 27 +- drivers/net/wireless/realtek/rtw88/fw.h | 25 ++ drivers/net/wireless/realtek/rtw88/mac.c | 402 ++++++++++++++---- drivers/net/wireless/realtek/rtw88/mac.h | 1 + drivers/net/wireless/realtek/rtw88/main.c | 41 +- drivers/net/wireless/realtek/rtw88/main.h | 17 + drivers/net/wireless/realtek/rtw88/pci.c | 35 +- drivers/net/wireless/realtek/rtw88/reg.h | 83 ++++ drivers/net/wireless/realtek/rtw88/rtw8723d.c | 217 ++++++++++ drivers/net/wireless/realtek/rtw88/rtw8723d.h | 3 + drivers/net/wireless/realtek/rtw88/rtw8822b.c | 1 + drivers/net/wireless/realtek/rtw88/rtw8822c.c | 1 + 12 files changed, 751 insertions(+), 102 deletions(-) -- 2.17.1