lkml.org 
[lkml]   [2001]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: USB broken in 2.4.0
On Sat, Jan 06, 2001 at 12:04:29AM +0100, antirez wrote:
> I'll do some test with the new 2.4 kernel to find if there is a problem
> in s10sh itself. A good test can be to try if the equivalent driver
> of gphoto works without problems using the 2.4 kernel (however it also
> uses the libusb). The s10sh bug may be not necessarly related to the USB
> subsystem.

Ok, the problem is the same that I ecountered developing the file
upload for the powershot USB driver performing a bulk write with
a big data size, but this time it is present even reading.

s10sh reads 0x1400 bytes at once downloading jpges from the
digicam, but the ioctl() that performs the bulk read fails with 2.4
using this size. If I resize it (for example to 0x300) it works without
problems (with high performace penality, of course, 60% of slow-down).
I don't know why. I checked at the time of the file upload the kernel
code finding nothing.

Anyway with the old releases of the USB subsystem libusb failed to
initialize the camera some time, now it seems fixed.

For the users: just edit usb.c and check the function USB_get_data(),
substituting all the occurrence of 0x1400 to 0x300 as a work-around.

Please CC: me since I'm not subscribed to the list.

regards,
antirez

--
Salvatore Sanfilippo | <antirez@invece.org>
http://www.kyuzz.org/antirez | PGP: finger antirez@tella.alicom.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.064 / U:3.020 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site