Bluetooth: Add quirk for reading BD_ADDR from fwnode property
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 19 Feb 2019 20:05:57 +0000 (12:05 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 26 Feb 2019 09:08:26 +0000 (10:08 +0100)
commit7a0e5b15ca458dd47e4c60b7fa9f22b84c7068c7
treeb53af310c8a2731da2566228974da53446ca8b9b
parent56897b217a1d0a91c9920cb418d6b3fe922f590a
Bluetooth: Add quirk for reading BD_ADDR from fwnode property

Add HCI_QUIRK_USE_BDADDR_PROPERTY to allow controllers to retrieve
the public Bluetooth address from the firmware node property
'local-bd-address'. If quirk is set and the property does not exist
or is invalid the controller is marked as unconfigured.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Tested-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c