Re: gadget file storage with variable maxpacket
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 13 Nov 2007, ilya wrote:
> hello,
>
> i guess this question is primarily for alan stern, but i
> do not know his e-mail.
>
> i was wondering how hard would it be to implement the
> file storage gadget with variable packet size, larger than
> 512, that could be specified as a module option or better
> yet use the maxpacket field in the usb_ep structure.
Then where would the maxpacket field in the usb_ep structure get
initialized in the first place? A module option would be possible.
> this
> will be neccessary for wireless usb, among many other
> things.
What other things?
> i am not really familiar with writing to disk from
> kernel space, so any suggestions would be appreciated.
Changing the high-speed maxpacket size wouldn't be hard. It would
involve editing the block of code that starts with:
if (gadget_is_dualspeed(gadget)) {
in the fsg_bind() routine. It wouldn't affect writing to disk at all.
Alan Stern
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel