patch? Re: USB mass storage fails to register on kernel 2.6.32

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Sheer
Date: Sunday, July 4, 2010 - 9:05 am

Ok, I changed the cable and it works perfectly.

I suggest the following patch then:

--- ./drivers/usb/core/hub.c 2010-06-11 09:54:26.000000000 +0200
+++ ./drivers/usb/core/hub.c.new 2010-07-04 17:10:28.000000000 +0200
@@ -2777,12 +2777,12 @@
retval = -ENODEV;
goto fail;
}
if (r) {
dev_err(&udev->dev,
- "device descriptor read/64, error %d\n",
- r);
+ "device descriptor read/64, error %d%s\n",
+ r, r == -32 ? ": bad cable?" : "");
retval = -EMSGSIZE;
continue;
}
#undef GET_DESCRIPTOR_BUFSIZE
}

I guess this closes this issue.

Kind regards

-paul


On Sun, 2010-07-04 at 10:03 +0200, Paul Sheer wrote:


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB mass storage fails to register on kernel 2.6.32, Paul Sheer, (Sun Jul 4, 1:03 am)
patch? Re: USB mass storage fails to register on kernel 2.6.32, Paul Sheer, (Sun Jul 4, 9:05 am)