2019-11-22 12:34:02

by Andre Heider

[permalink] [raw]
Subject: [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk

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 <[email protected]>
---
drivers/bluetooth/btbcm.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index 2d2e6d862068..c5c12ba880d9 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -440,6 +440,11 @@ 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);
--
2.24.0


2019-11-22 12:36:27

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk

Hi Andre,

> 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 <[email protected]>
> ---
> drivers/bluetooth/btbcm.c | 5 +++++
> 1 file changed, 5 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel

2019-11-22 12:38:04

by Andre Heider

[permalink] [raw]
Subject: Re: [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk

On 22/11/2019 13:35, Marcel Holtmann wrote:
> Hi Andre,
>
>> 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 <[email protected]>
>> ---
>> drivers/bluetooth/btbcm.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>
> patch has been applied to bluetooth-next tree.

Nice, thank you!
Andre