OSDN Git Service

Bluetooth: Add device shutdown routine for Intel Bluetooth device
authorTedd Ho-Jeong An <tedd.an@intel.com>
Fri, 13 Feb 2015 17:20:52 +0000 (09:20 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 14 Feb 2015 23:39:22 +0000 (00:39 +0100)
commitbfbd45e9acd2ef90ccc31ea02e08f82af392dbec
tree71cb3349bd7c0a39a89e4097859a7437710b3445
parenta44fecbd52a4d9c36f07eb2161c153047d8765d4
Bluetooth: Add device shutdown routine for Intel Bluetooth device

This patch adds the device shutdown routine for Intel Bluetooth device.

Some platforms have BT LED issue with Intel Bluetooth device that BT LED goes
off 5 seconds after BT is turned off

For Intel Bluetooth device, the BT LED is turned off when:
- there is no active connection or radio activity
- USB is suspend

So, when the BT is turned off, it takes 5 seconds because USB suspend timeone
is 5 seconds by default. And if the USB suspend is not enabled, BT LED won't be
turned off.

To fix this issue, recently Intel Bluetooth firmware patch had been submitted
to turn off the BT LED immediately by the vendor specific command(0xFC3F). And
this patch sends this command to the device before closing the device.

For backward compatibility of this command  with old firmware, this command was
supported before, but it behaves same as HCI_RESET internally. So, it won't be
the problem even if the system doesn't have the latest firmware patch.

Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c