On Sun, 1 Feb 2004, Phil Dibowitz wrote:
> Folks,
>
> I haven't used my camera since I was on 2.6.0-t9 (which worked), and I'm
> now trying on 2.6.1 and its not getting recognized when I plug it in
> (i.e. usually it attaches to the /dev/sda1 device, but it's no longer
> attaching to anything).
>
> Generally the required modules are usb-storage, scsi_mod, sd_mod,
> uhci_hdc, usb-core, and vfat, which are all loaded.
>
> The only problem I see is:
>
> Feb 1 01:53:17 rider kernel: uhci: USBCMD_HCRESET timed out!
>
> Which, at a brief look at the source, happens on loading the driver for
> the HC, it does an initial reset so it can find attached devices... but
> the reset times out...
Have you changed your computer hardware since you last were able to use
the camera? A change in the system speed or the USB controller speed
would explain your problem.
You are correct about the reset timing out. That section of code is
really badly written. The patch below should help; let us know if it
works.
Alan Stern
--- 2.6/drivers/usb/host/uhci-hcd.c.orig Sun Jan 25 12:26:19 2004
+++ 2.6/drivers/usb/host/uhci-hcd.c Sun Feb 1 11:52:53 2004
@@ -2112,7 +2112,7 @@
static void start_hc(struct uhci_hcd *uhci)
{
unsigned int io_addr = uhci->io_addr;
- int timeout = 1000;
+ unsigned long timeout = jiffies + (1 + 20 * HZ / 1000);
/*
* Reset the HC - this will force us to get a
@@ -2122,7 +2122,7 @@
*/
outw(USBCMD_HCRESET, io_addr + USBCMD);
while (inw(io_addr + USBCMD) & USBCMD_HCRESET) {
- if (!--timeout) {
+ if (time_after(jiffies, timeout)) {
printk(KERN_ERR "uhci: USBCMD_HCRESET timed out!\n");
break;
}
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel