linux/net/rfkill
Caesar Wang 51a94209b8 net/rfkill: bt: improve to set the bt power
There is a bt power issue on Debian OS, the blueman app
will callback to enable the bluetooth power during the bringup.

As below log the system bringup about 10s.
[BT_RFKILL]: rfkill_rk_set_power: set bt wake_host pin output high!
[BT_RFKILL]: rfkill_rk_set_power: enable bt reset pin!
[BT_RFKILL]: ENABLE UART_RTS
[BT_RFKILL]: DISABLE UART_RTS
[BT_RFKILL]: bt turn on power
...

So the rfkill-bt driver should judge the power status, otherwise the
blueman app will cause the bluetoolth timeout error. e.g:
root@linaro-alip:/# bluetoothctl
[NEW] Controller 3B:A0:90:48:46:40 linaro-alip [default]
[bluetooth]# scan on
Discovery started
[   33.076522] Bluetooth: hci0 command 0x2005 tx timeout
[   35.080473] Bluetooth: hci0 command 0x200b tx timeout
[   37.084505] Bluetooth: hci0 command 0x200c tx timeout

Change-Id: Ib0dd99a83c64dbaf469c3eb7a9226a2d83c53e6f
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-11-21 10:31:11 +08:00
..
core.c ANDROID: rfkill: fix unused function warning 2017-05-25 16:37:25 +05:30
input.c
Kconfig rfkill: Introduce CONFIG_RFKILL_PM and use instead of CONFIG_PM to power down 2016-02-16 13:51:46 -08:00
Makefile net: rkwifi: initialize code to support rkwifi 2016-03-09 11:57:39 +08:00
rfkill-bt.c net/rfkill: bt: improve to set the bt power 2018-11-21 10:31:11 +08:00
rfkill-gpio.c rfkill: gpio: fix memory leak in probe error path 2018-05-16 10:06:51 +02:00
rfkill-regulator.c net: rfkill: drop owner assignment from platform_drivers 2014-10-20 16:21:58 +02:00
rfkill-wlan.c net: wireless: rockchip_wlan: add config WIFI_GENERATE_RANDOM_MAC_ADDR 2018-09-12 14:53:39 +08:00
rfkill.h