]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: fix btmpinfo timeout while processing C2H_BT_INFO
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 18 May 2018 09:30:07 +0000 (17:30 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 May 2018 07:17:05 +0000 (10:17 +0300)
commit5e26939b2dda7fadeb21bbf1f74046abb99a724a
treea32f10cec5a0cc774e593c39b32310b0955b3aa2
parentb4aaa4868bb86038d7a093927efcad55bcf98a73
rtlwifi: fix btmpinfo timeout while processing C2H_BT_INFO

In former patch, I enqueu all C2H commands and processed by a workqueue.
In case C2H_BT_INFO will issue a H2C command to set BT reg, and wait for
a C2H ack. But it is totally impossible that C2H workqueue waits for a
C2H command, so kernel log warn
rtlwifi: :<0> btmpinfo wait (req_num=0) timeout

Since the C2H ack command C2H_BT_MP can be safely processed in interrupt
context, add a fast command path to deal with the command.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/base.c