Am Dienstag, 3. Januar 2006 17:08 schrieb Sam Bishop:
> Oliver Neukum wrote:
> > Does this fix your trouble?
> >
> >     Regards
> >             Oliver
> >
> > --- linux-2.6.15-rc5-vanilla/drivers/usb/usb-skeleton.c     2005-12-04 
> > 06:10:42.000000000 +0100
> > +++ linux-2.6.15-rc5/drivers/usb/usb-skeleton.c     2005-12-17 
> > 09:41:39.000000000 +0100
> > @@ -39,10 +39,15 @@
> >  /* Get a minor range for your devices from the usb maintainer */
> >  #define USB_SKEL_MINOR_BASE        192
> >  
> > +/* our private defines. if this grows any larger, use your own .h file */
> > +#define MAX_TRANSFER               ( PAGE_SIZE - 512 )
> > +#define WRITES_IN_FLIGHT   8
> Oliver, I'm curious about your MAX_TRANSFER definition.  Why do you 
> subtract 512?  Is that for the benefit of the memory allocator or is it 
> USB related?

I want to keep allocations below page size and 512 is the largest possible
data transfer size in USB 2.0. So this is nice to the memory allocator and
makes sure all is aligned.

        Regards
                Oliver


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to