* [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk
@ 2019-11-22 12:31 Andre Heider
2019-11-22 12:35 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Andre Heider @ 2019-11-22 12:31 UTC (permalink / raw)
To: Johan Hedberg; +Cc: linux-bluetooth, Ondrej Jirman, Jernej Skrabec
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>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk
2019-11-22 12:31 [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk Andre Heider
@ 2019-11-22 12:35 ` Marcel Holtmann
2019-11-22 12:37 ` Andre Heider
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2019-11-22 12:35 UTC (permalink / raw)
To: Andre Heider
Cc: Johan Hedberg, linux-bluetooth, Ondrej Jirman, Jernej Skrabec
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 <a.heider@gmail.com>
> ---
> drivers/bluetooth/btbcm.c | 5 +++++
> 1 file changed, 5 insertions(+)
patch has been applied to bluetooth-next tree.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk
2019-11-22 12:35 ` Marcel Holtmann
@ 2019-11-22 12:37 ` Andre Heider
0 siblings, 0 replies; 3+ messages in thread
From: Andre Heider @ 2019-11-22 12:37 UTC (permalink / raw)
To: Marcel Holtmann
Cc: Johan Hedberg, linux-bluetooth, Ondrej Jirman, Jernej Skrabec
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 <a.heider@gmail.com>
>> ---
>> drivers/bluetooth/btbcm.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>
> patch has been applied to bluetooth-next tree.
Nice, thank you!
Andre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-22 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-22 12:31 [PATCH v4] bluetooth: bcm: Use the BDADDR_PROPERTY quirk Andre Heider
2019-11-22 12:35 ` Marcel Holtmann
2019-11-22 12:37 ` Andre Heider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox