summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalakrishna Godavarthi2019-04-18 15:21:23 +0200
committerMarcel Holtmann2019-04-24 09:12:47 +0200
commite668eb1e1578f4fec1cf85ea62e43cb0814b6a6e (patch)
tree89df61ec982d725252f4c74680fc8c75d2417178
parentBluetooth: hci_qca: Fix crash with non-serdev devices (diff)
downloadkernel-qcow2-linux-e668eb1e1578f4fec1cf85ea62e43cb0814b6a6e.tar.gz
kernel-qcow2-linux-e668eb1e1578f4fec1cf85ea62e43cb0814b6a6e.tar.xz
kernel-qcow2-linux-e668eb1e1578f4fec1cf85ea62e43cb0814b6a6e.zip
Bluetooth: hci_core: Don't stop BT if the BD address missing in dts
When flag HCI_QUIRK_USE_BDADDR_PROPERTY is set, we will read the bluetooth address from dts. If the bluetooth address node is missing from the dts we will enable it controller UNCONFIGURED state. This patch enables the normal flow even if the BD address is missing from the dts tree. Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org> Tested-by: Harish Bandi <c-hbandi@codeaurora.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--net/bluetooth/hci_core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index d6b2540ba7f8..3d9175f130b3 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1460,8 +1460,6 @@ static int hci_dev_do_open(struct hci_dev *hdev)
hdev->set_bdaddr)
ret = hdev->set_bdaddr(hdev,
&hdev->public_addr);
- else
- ret = -EADDRNOTAVAIL;
}
setup_failed: