On Wed, 30 Jul 2003, Matthew Dharm wrote: > My guess is that the vast majority of devices will be fine with any length > over the header size -- some of James' code tries to guarantee that. > > Do we have any idea how large that page is supposed to be?
In Daniel's case we actually know, because I had him try out a patch that printed the page size. It was 1536 bytes. (That might include some block descriptors, because the code didn't set the Disable Block Descriptors flag.) Note that the buffer used in the mode_sense routine is only 512 bytes. > Whatever length you request should also be a multiple of 4, just to make > sure devices stay happy. > > Other than that, I say send it to James. Okay, I'll clean it up and send it to him. Alan Stern ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
