Bug 2445

Summary: removing bluetooth dongle while inquiring freezes the box
Product: Drivers Reporter: Alex Riesen (raa.lkml)
Component: USBAssignee: Alan Stern (stern)
Status: RESOLVED CODE_FIX    
Severity: normal CC: greg
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.5+bk Subsystem:
Regression: --- Bisected commit-id:
Attachments: oops
Patch for hci_usb Bluetooth driver

Description Alex Riesen 2004-04-05 12:00:15 UTC
Distribution: Gentoo Experimental
Hardware Environment: 
P4-2.6GHz, SMT, PE
i865 chipset, uhci-hcd, hci-usb, usb2 hub/card reader
Software Environment: bluez-utils 2.5, xfree was running
Problem Description:
Solid freeze after removing a bluetooth usb dongle while scanning
bluetooth neighbourhood.

Steps to reproduce:
after modprobing hci-usb, I insert the dongle in the usb port
of the card reader. Than I run "hciconfig hci0 up" to initialize
the interface and start "hcitool scan". While it is running, I
remove the dongle. The computer freezes. Nothing in logs, no network.
Hcitool manages to write some error (sorry, can't remember).
The scan hasn't found any devices. It didn't reported them, and there
were none, afaik.
Comment 1 Alex Riesen 2004-04-05 12:37:17 UTC
Created attachment 2507 [details]
oops

Got the oops by booting in a clean (no X, no nothin) environment.
Comment 2 Simone Gotti 2004-04-05 14:57:52 UTC
Same problem here, it started with kernel 2.6.4 while with the previous 
kernels the unplug worked well. 
On the bluez-devel mailing list Marcel Holtmann says that this is a usb 
problem and not a hci_usb problem. 
 
It seems that this problem happen only with uhci usb controllers. 
If any info is needed let me know 
 
Bye! 
Comment 3 Alan Stern 2004-04-09 07:17:30 UTC
Created attachment 2560 [details]
Patch for hci_usb Bluetooth driver

Since both of you have indicated that this patch fixes the problem, I will mark
this bug closed.