lkml.org 
[lkml]   [2018]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] Add quirk for reading BD_ADDR from fwnode property
Date
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'. It is also planned to extend the hci_qca driver
to support setting the BD address through the DT.

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 driver to use this quirk.

Matthias Kaehlcke (2):
Bluetooth: Add quirk for reading BD_ADDR from fwnode property
Bluetooth: btqcomsmd: use HCI_QUIRK_USE_BDADDR_PROPERTY

drivers/bluetooth/btqcomsmd.c | 28 +++--------------------
include/net/bluetooth/hci.h | 12 ++++++++++
net/bluetooth/hci_core.c | 42 +++++++++++++++++++++++++++++++++++
net/bluetooth/mgmt.c | 6 +++--
4 files changed, 61 insertions(+), 27 deletions(-)

--
2.19.1.568.g152ad8e336-goog

\
 
 \ /
  Last update: 2018-10-25 02:23    [W:0.063 / U:0.292 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site