diff options
| author | Andre Heider <a.heider@gmail.com> | 2019-11-22 13:31:42 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-01 09:34:51 +0000 |
| commit | 58b09300ee1b505d125da7f0d8f0f8641627e630 (patch) | |
| tree | e6725e5c98270e7f4e0cf29c14cb46f7929f7a7f /drivers/bluetooth | |
| parent | d1e5f8c5156e1f957cf3e3b065836566467489d1 (diff) | |
| download | linux-58b09300ee1b505d125da7f0d8f0f8641627e630.tar.gz linux-58b09300ee1b505d125da7f0d8f0f8641627e630.tar.bz2 linux-58b09300ee1b505d125da7f0d8f0f8641627e630.zip | |
Bluetooth: btbcm: Use the BDADDR_PROPERTY quirk
[ Upstream commit a4f95f31a9f38d9bb1fd313fcc2d0c0d48116ee3 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/bluetooth')
| -rw-r--r-- | drivers/bluetooth/btbcm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 2d2e6d862068..f02a4bdc0ca7 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -440,6 +440,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); |
