Thread (1 message) 1 message, 1 author, 2017-09-08

Re: [PATCH v6 3/3] Bluetooth: btqcomsmd: retrieve BD address from DT property

From: Marcel Holtmann <hidden>
Date: 2017-09-08 10:57:40
Also in: linux-arm-msm, linux-bluetooth

Hi Loic,
quoted
+     /* The local-bd-address property is usually injected by the
+      * bootloader which has access to the allocated BD address.
+      */
+     if (!of_property_read_u8_array(pdev->dev.of_node, "local-bd-address",
+                                    (u8 *)&btq->bdaddr, sizeof(bdaddr_t))) {
+             BT_INFO("BD address %pMR retrieved from device-tree",
+                     &btq->bdaddr);
+     }
any reason you are not using bt_dev_info here? I think it would be important to print the device information prefix.

Yes, hdev does not have any allocated name/number before being registered.
I can move this after hci_register_dev if you prefer.
if that is possible, then that would be good.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help