]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Bluetooth: hci_bcm: Use operation speed of 4Mbps only for ACPI devices
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Aug 2017 07:53:30 +0000 (09:53 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Aug 2017 14:51:27 +0000 (17:51 +0300)
commit74183a1c50a3c61e62d2e585107ea3c0b942a3ff
tree6b8f18fb485ec09b3115d288e787f28a678c0c53
parenta0085f2510e8976614ad8f766b209448b385492f
Bluetooth: hci_bcm: Use operation speed of 4Mbps only for ACPI devices

Not all Broadcom controller support the 4Mbps operational speed on UART
devices. This is because the UART clock setting changes might not be
supported.

  < HCI Command: Broadcom Write UART Clock Setting (0x3f|0x0045) plen 1
         01                                               .
  > HCI Event: Command Complete (0x0e) plen 4
       Broadcom Write UART Clock Setting (0x3f|0x0045) ncmd 1
         Status: Unknown HCI Command (0x01)

To support any operational speed higher than 3Mbps, support for this
command is required. With that respect it is better to not enforce any
operational speed by default. Only when its support is known, then allow
for higher operational speed.

This patch assigns the 4Mbps opertional speed only for devices
discovered through ACPI and leave all others at the default 115200.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/hci_bcm.c