Thread (5 messages) 5 messages, 2 authors, 2017-09-08

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

From: Loic Poulain <hidden>
Date: 2017-09-08 07:04:15
Also in: linux-bluetooth

Hi Marcel,
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",
quoted
+                                    (u8 *)&btq->bdaddr,
sizeof(bdaddr_t))) {
quoted
+             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.

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