diff options
author | Yan-Hsuan Chuang <yhchuang@realtek.com> | 2019-09-23 10:47:03 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-09-24 10:55:40 +0300 |
commit | 0b8dc6abbdb9f6696b1a79c42976e506645e5c2c (patch) | |
tree | 036090a824f81c66338681539ab716e9a53161ac /drivers/net/wireless/realtek/rtw88/main.c | |
parent | 6355592e6b55be8c568b62efba5fe5a1c919a2db (diff) | |
download | lwn-0b8dc6abbdb9f6696b1a79c42976e506645e5c2c.tar.gz lwn-0b8dc6abbdb9f6696b1a79c42976e506645e5c2c.zip |
rtw88: configure firmware after HCI started
After firmware has been downloaded, driver should send
some information to it through H2C commands. Those H2C
commands are transmitted through TX path.
But before HCI has been started, the TX path is not
working completely. Such as PCI interfaces, the interrupts
are not enabled, hence TX interrupts will not be issued
after H2C skb has been DMAed to the device. And the H2C
skbs will not be released until the device is powered off.
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/main.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index fc8f6213fc8f..6dd457741b15 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -704,6 +704,10 @@ static int rtw_power_on(struct rtw_dev *rtwdev) goto err_off; } + /* send H2C after HCI has started */ + rtw_fw_send_general_info(rtwdev); + rtw_fw_send_phydm_info(rtwdev); + wifi_only = !rtwdev->efuse.btcoex; rtw_coex_power_on_setting(rtwdev); rtw_coex_init_hw_config(rtwdev, wifi_only); |