Re: [linux-usb-devel] Re: USBDEVFS_RESET deadlocks USB bus.
From: Duncan Sands
Date: Fri Jun 04 2004 - 15:42:33 EST
> c4bae310 Call Trace:
> [<c0336735>] __down+0x85/0x120
> [<c033692f>] __down_failed+0xb/0x14
> [<c026af27>] .text.lock.hub+0x69/0x82
> [<c0272b7f>] usbdev_ioctl+0x19f/0x710
> [<c015a45d>] file_ioctl+0x5d/0x170
> [<c015a686>] sys_ioctl+0x116/0x250
> [<c0103f8f>] syscall_call+0x7/0xb
Does this help?
Ciao,
Duncan.
--- linux-2.5/drivers/usb/core/devio.c.orig 2004-06-04 22:29:28.000000000 +0200
+++ linux-2.5/drivers/usb/core/devio.c 2004-06-04 22:40:22.000000000 +0200
@@ -50,6 +50,8 @@
#include "hcd.h" /* for usbcore internals */
#include "usb.h"
+extern int __usb_reset_device(struct usb_device *udev);
+
struct async {
struct list_head asynclist;
struct dev_state *ps;
@@ -719,7 +721,7 @@
static int proc_resetdevice(struct dev_state *ps)
{
- return usb_reset_device(ps->dev);
+ return __usb_reset_device(ps->dev);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/