OSDN Git Service

Bluetooth: btbcm: Use the BDADDR_PROPERTY quirk
authorAndre Heider <a.heider@gmail.com>
Fri, 22 Nov 2019 12:31:42 +0000 (13:31 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 22 Nov 2019 12:35:20 +0000 (13:35 +0100)
Some devices ship with the controller default address, like the
Orange Pi 3 (BCM4345C5).

Allow the bootloader to set a valid address through the device tree.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btbcm.c

index 689c7f3..8e05706 100644 (file)
@@ -444,6 +444,12 @@ int btbcm_finalize(struct hci_dev *hdev)
 
        set_bit(HCI_QUIRK_STRICT_DUPLICATE_FILTER, &hdev->quirks);
 
+       /* Some devices ship with the controller default address.
+        * Allow the bootloader to set a valid address through the
+        * device tree.
+        */
+       set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks);
+
        return 0;
 }
 EXPORT_SYMBOL_GPL(btbcm_finalize);