Skip to content

Commit

Permalink
Bluetooth: btbcm: Use the BDADDR_PROPERTY quirk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andre Heider authored and Marcel Holtmann committed Nov 22, 2019
1 parent d088337 commit a4f95f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/bluetooth/btbcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4f95f3

Please sign in to comment.