On Wed, 6 Jul 2005, Roel kluin wrote:
> > Make sure all your USB storage devices are unplugged when you boot, and then
> > see what appears in the log when you connect them.
>
> With the device unplugged it boots normally. USB_STORAGE_DEBUG is
> turned on in this kernel (2.6.12-mm1).
> I think you mean with log when I type dmesg? that is pasted below.
> as you can see there is something like a panic at the end of the boot
> mentioning
> "kernel BUG at fs/open.c:935". At 860 I connected my usb device.
Looks like you've encountered an interesting failure case.
> [ 27.329853] usb 4-1:1.0: hotplug
> [ 27.329927] midi 4-1:1.0: usb_probe_interface
> [ 27.329929] midi 4-1:1.0: usb_probe_interface - got id
> [ 27.329935] midi: probe of 4-1:1.0 failed with error -5
> [ 27.336647] usb 4-1:1.0: hotplug
> [ 27.336857] usb 4-1: device_add(4-1:1.0) --> -5
> [ 27.359842] usb 4-1: can't set config #1, error -5
Something like that hasn't come up very much in the past. Recent changes
to the kernel may help, but you should probably try out the patch below as
well. It's meant to apply to 2.6.13-rc1 or later.
Alan Stern
Index: usb-2.6/drivers/usb/core/message.c
===================================================================
--- usb-2.6.orig/drivers/usb/core/message.c
+++ usb-2.6/drivers/usb/core/message.c
@@ -985,8 +985,10 @@ void usb_disable_device(struct usb_devic
for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
struct usb_interface *interface;
- /* remove this interface */
+ /* remove this interface if it has been registered */
interface = dev->actconfig->interface[i];
+ if (!klist_node_attached(&interface->dev.knode_bus))
+ continue;
dev_dbg (&dev->dev, "unregistering interface %s\n",
interface->dev.bus_id);
usb_remove_sysfs_intf_files(interface);
@@ -1439,7 +1441,7 @@ free_interfaces:
}
}
- return ret;
+ return 0;
}
// synchronous request completion model
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel