Bug 2445 - removing bluetooth dongle while inquiring freezes the box
Summary: removing bluetooth dongle while inquiring freezes the box
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Alan Stern
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-05 12:00 UTC by Alex Riesen
Modified: 2004-04-09 07:18 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.5+bk
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
oops (79.70 KB, image/jpeg)
2004-04-05 12:37 UTC, Alex Riesen
Details
Patch for hci_usb Bluetooth driver (709 bytes, patch)
2004-04-09 07:17 UTC, Alan Stern
Details | Diff

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.

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