Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/WILINK-SW: HCI device fails to come up following btwilink probe

$
0
0

Part Number:WILINK-SW

Tool/software: Linux

Setup:

  • NL5500 combo chip
  • Linux 4.12

I am observing an error following probe of the "btwilink" driver. In the function bt_ti_probe, hci_register_dev is called. This starts some hci messaging between Linux and the bluetooth chip. During this initialization I see an hci packet failure (that I'm not sure what it means) followed by the ti-st driver uninteresting all of it's protocols. Here is the log file:

Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
bf042394 name L2CAP
Bluetooth: SCO socket layer initialized
bf042564 name SCO
sock c2c40000
cmd 800448d3 arg 7f585d7c
channel 2 len 36
0
sock c2c40000 sk c33ba400
channel 2 len 10
c32b3000 name hci0 bus 3
hdev hci0 event 1
c32b3000 name hci0 blocked 0
hdev   (null) len 8
hci0 orig refcnt 4
hci0
hci0 c32b3000
(stc):  chnl_id list empty :4
(stk) : st_kim_start
(stk) :ldisc_install = 1
(stc): st_tty_open
(stk) :line discipline installed
(stk) :ti-connectivity/TIInit_8.6.15.bts
(stc): add_channel_to_table: id 4
(stc): add_channel_to_table: id 2
(stc): add_channel_to_table: id 3
hdev hci0 event 7
hdev hci0 event 9
hci0 start
hci0 0
hci0 0
hci0 opcode 0x0c03 plen 0
skb len 3
hci0 opcode 0x1003 plen 0
skb len 3
hci0 opcode 0x1001 plen 0
skb len 3
hci0 opcode 0x1009 plen 0
skb len 3
length 4
hci0 cmd_cnt 1 cmd queued 4
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
hci0 state 0 -> 0
opcode 0x0c03 status 0x00
hci0 opcode 0x0c03
hci0 cmd_cnt 1 cmd queued 3
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
opcode 0x1003 status 0x00
hci0 opcode 0x1003
hci0 cmd_cnt 1 cmd queued 2
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
opcode 0x1001 status 0x00
hci0 opcode 0x1001
hci0 cmd_cnt 1 cmd queued 1
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
opcode 0x1009 status 0x00
hci0 opcode 0x1009
hci0 result 0x00
hci0 end: err 0
hci0 start
hci0 opcode 0x1005 plen 0
skb len 3
hci0 opcode 0x0c23 plen 0
skb len 3
hci0 opcode 0x0c14 plen 0
skb len 3
hci0 opcode 0x0c25 plen 0
skb len 3
hci0 opcode 0x0c38 plen 0
skb len 3
hci0 opcode 0x0c39 plen 0
skb len 3
hci0 opcode 0x0c05 plen 1
skb len 4
hci0 opcode 0x0c16 plen 2
skb len 5
hci0 opcode 0x2002 plen 0
skb len 3
hci0 opcode 0x2003 plen 0
skb len 3
hci0 opcode 0x201c plen 0
skb len 3
hci0 opcode 0x1002 plen 0
skb len 3
hci0 opcode 0x0c52 plen 241
skb len 244
hci0 opcode 0x0c45 plen 1
skb len 4
hci0 opcode 0x0c58 plen 0
skb len 3
hci0 opcode 0x1004 plen 1
skb len 4
length 16
hci0 cmd_cnt 1 cmd queued 16
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
hci0 acl mtu 1021:4 sco mtu 180:4
opcode 0x1005 status 0x00
hci0 opcode 0x1005
hci0 cmd_cnt 1 cmd queued 15
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
hci0 class 0x001f00
opcode 0x0c23 status 0x00
hci0 opcode 0x0c23
hci0 cmd_cnt 1 cmd queued 14
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
opcode 0x0c14 status 0x00
hci0 opcode 0x0c14
hci0 cmd_cnt 1 cmd queued 13
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
hci0 voice setting 0x0060
opcode 0x0c25 status 0x00
hci0 opcode 0x0c25
hci0 cmd_cnt 1 cmd queued 12
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
hci0 num iac 5
opcode 0x0c38 status 0x00
hci0 opcode 0x0c38
hci0 cmd_cnt 1 cmd queued 11
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 opcode 0x0c39
opcode 0x0c39 status 0x00
hci0 opcode 0x0c39
hci0 cmd_cnt 1 cmd queued 10
hci0 type 1 len 4
hci0
hci0 Event packet
hci0 opcode 0x0c05
opcode 0x0c05 status 0x00
hci0 opcode 0x0c05
hci0 cmd_cnt 1 cmd queued 9
hci0 type 1 len 5
hci0
hci0 Event packet
hci0 opcode 0x0c16
opcode 0x0c16 status 0x00
hci0 opcode 0x0c16
hci0 cmd_cnt 1 cmd queued 8
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
hci0 le mtu 27:15
opcode 0x2002 status 0x00
hci0 opcode 0x2002
hci0 cmd_cnt 1 cmd queued 7
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x00
opcode 0x2003 status 0x00
hci0 opcode 0x2003
hci0 cmd_cnt 1 cmd queued 6
hci0 type 1 len 3
hci0
hci0 Event packet
hci0 status 0x0c
opcode 0x201c status 0x0c
hci0 opcode 0x201c
hci0 result 0x0c
hci0 end: err -16
hdev hci0 event 8
(stc): remove_channel_from_table: id 3
(stc): remove_channel_from_table: id 2
(stc): remove_channel_from_table: id 4
(stc):  all chnl_ids unregistered
(stk) :ldisc_install = 0

I've enabled BT_DBG in a number of Bluetooth files located in net/bluetooth which revealed the "hci0 end: err -16" error seen above. I'm hoping that someone could explain that error a little more and a possible solution. Thanks!


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>