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, antirez <antirez@invece.org> wrote:
> On Fri, Jan 05, 2001 at 04:48:00PM -0800, Dunlap, Randy wrote:
> > This rings a small bell with me.
> > There was a change by Dan Streetman IIRC to limit
> > usbdevfs bulk transfers to PAGE_SIZE (4 KB for x86,
> > or 0x1000). Anything larger than that returns
> > an error (-EINVAL).
>
> Yes, devio.c, proc_bulk():
>
> if (len1 > PAGE_SIZE)
> return -EINVAL;
>
> Actually it is the max transfer size I can reach.
> I guess that to limit the page size can be an impementation
> advantage but it may slow-down a bit some userspace driver.
> I feel that even if the linux way is to implement the USB
> drivers in kernel space a full-featured USB user space access
> should be allowed.

This is the responsibility of the user space access. Using 4k reads
versus 8k reads won't increase performance (noticably), or will it
function any more correctly.

The next version of libusb will split up reads correctly so applications
using the library don't need to worry about this.

JE

-
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.030 / U:0.896 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site