Bug 199811 - Bluetooth: Can't read local name on hci0
Summary: Bluetooth: Can't read local name on hci0
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 14:45 UTC by Uday
Modified: 2018-05-24 19:07 UTC (History)
5 users (show)

See Also:
Kernel Version: 4.4.11
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Uday 2018-05-23 14:45:56 UTC
Not able to do any operations on bluetooth after getting below error. 

# hciconfig -a
hci0:	Type: Primary  Bus: SDIO
	BD Address: AC:3F:A4:CE:38:8F  ACL MTU: 1021:7  SCO MTU: 120:6
	UP RUNNING PSCAN 
	RX bytes:-1610390126 acl:1405 sco:0 events:3076 errors:0
	TX bytes:43055 acl:1219 sco:0 commands:521 errors:0
	Features: 0xff 0xfe 0x8f 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF 
	Link mode: SLAVE ACCEPT 

Can't read local name on hci0: Connection timed out (110)

Adapter is : Marvell controller

If I do "hciconfig hci0 reset", then bluetooth will start working fine.
Comment 1 Maxim Moseychuk 2018-05-23 17:03:14 UTC
Please test linux-usb/usb-next branch

I have similar problem and it fixed in this branch
Comment 2 Uday 2018-05-24 06:18:45 UTC
Hi Maxim,

Thank you for the response.

I am not able to find the linux-usb/usb-next branch. 
Please can you provide the reference\link where the fix was provided.

Thank you in advance.

Regards,
Uday
Comment 3 Maxim Moseychuk 2018-05-24 09:23:08 UTC
Pull from this repo https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Comment 4 Uday 2018-05-24 10:11:49 UTC
Please can you point out the commit ID for this issue.
Comment 6 Uday 2018-05-24 10:56:10 UTC
Hi Maxim,

Thank you for the quick response.

By looking into the comments and changes on shared link, we have a different issue.

We are using "Marvell combo (WiFi and BT) module using SDIO" card.
While connecting/disconnecting a device/headset multiple times, we are facing "Can't read local name on hci0: Connection timed out (110)" issue.

Bluetooth Controller: 4.2
Bluez: 5.49
kernel : 4.4.11

Verified below commands, when we got this error.

#hciconfig -a
hci0:	Type: Primary  Bus: SDIO
	BD Address: AC:3F:A4:CE:38:8F  ACL MTU: 1021:7  SCO MTU: 120:6
	UP RUNNING PSCAN 
	RX bytes:-1610390126 acl:1405 sco:0 events:3076 errors:0
	TX bytes:43055 acl:1219 sco:0 commands:521 errors:0
	Features: 0xff 0xfe 0x8f 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF 
	Link mode: SLAVE ACCEPT 
Can't read local name on hci0: Connection timed out (110)
#hcitool scan
Scanning ...
Inquiry failed: Connection timed out 

and on "hcidump -Xt" also no logs.

Thank you in advance.

Regards,
Uday
Comment 7 Maxim Moseychuk 2018-05-24 11:17:41 UTC
Oh, yes. You have SDIO bus. My patch fix usb hub.

But SDIO controller can be connected over USB :) Check it.
Comment 8 Uday 2018-05-24 11:53:49 UTC
No. We are not using USB. We are using SDIO interface directly.

Note You need to log in before you can comment on or make changes to this bug.