Skip to content

Add quirk for reading BD_ADDR from fwnode property

Matthias Kaehlcke linux-bluetooth lkml netdev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyIn review
  2. v1 posting 2/23 patches 2 repliesSuperseded
  3. v33 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/23 patches1 replySuperseded
v2 posting 1/23 patches3 repliesSuperseded
v1 posting 1/22 patches5 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Bluetooth: Add quirk for reading BD_ADDR from fwnode propertyinclude/net/bluetooth/hci.h net/bluetooth/hci_core.c net/bluetooth/mgmt.c+59 -20 replies
2/3Bluetooth: btqcomsmd: use HCI_QUIRK_USE_BDADDR_PROPERTYdrivers/bluetooth/btqcomsmd.c+3 -280 replies
3/3Bluetooth: hci_qca: Set HCI_QUIRK_USE_BDADDR_PROPERTY for wcn3990drivers/bluetooth/hci_qca.c+1 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchBalakrishna Godavarthi
1/3R-b T-b
2/3R-b
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] Add quirk for reading BD_ADDR from fwnode property

On some systems the Bluetooth Device Address (BD_ADDR) isn't stored on the Bluetooth chip itself. One way to configure the address is through the device tree (patched in by the bootloader). The btqcomsmd driver is an example, it can read the address from the DT property 'local-bd-address'.

To avoid redundant open-coded reading of 'local-bd-address' and error handling this series adds the quirk HCI_QUIRK_USE_BDADDR_PROPERTY to retrieve the BD address of a device from the DT and adapts the btqcomsmd and hci_qca drivers to use this quirk.

Matthias Kaehlcke (3):
Bluetooth: Add quirk for reading BD_ADDR from fwnode property
Bluetooth: btqcomsmd: use HCI_QUIRK_USE_BDADDR_PROPERTY
Bluetooth: hci_qca: Set HCI_QUIRK_USE_BDADDR_PROPERTY for wcn3990

 drivers/bluetooth/btqcomsmd.c | 31 +++----------------------
 drivers/bluetooth/hci_qca.c   |  1 +
 include/net/bluetooth/hci.h   | 12 ++++++++++
 net/bluetooth/hci_core.c      | 43 +++++++++++++++++++++++++++++++++++
 net/bluetooth/mgmt.c          |  6 +++--
 5 files changed, 63 insertions(+), 30 deletions(-)
Signature · 1 line
2.21.0.rc0.258.g878e2cd30e-goog