Bluetooth: hci_intel: Add Intel baudrate configuration support
authorLoic Poulain <loic.poulain@intel.com>
Tue, 25 Aug 2015 15:55:44 +0000 (17:55 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Aug 2015 19:00:37 +0000 (21:00 +0200)
commitff2895592f0fccc59332d5c7d4917ccbecd7468e
tree1b1dc92e3064ec51cfe269e955c0d38052cdf5e4
parente54991677e1c8060ba5642472cbd9a0954298d01
Bluetooth: hci_intel: Add Intel baudrate configuration support

Implement the set_baudrate callback for hci_intel.
 - Controller requires a read Intel version command before updating
   its baudrate.
 - The operation consists in an async cmd since the controller does
   not respond at the same speed.
 - Wait 100ms to let the controller change its baudrate.
 - Clear RTS until we change our own UART speed

Manage speed change in the setup function, we need to restore the oper
speed once chip has booted on patched firmware.

Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_intel.c