Re: gadget file storage with variable maxpacket

Felipe Balbi <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hi,

On Wed, 14 Nov 2007 12:02:31 -0500 (EST), Alan Stern
<[email protected]> wrote:
> 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.

wouldn't it shit up usb specs ?
maxpacket field should be static for a vendorid:productid pair.

Maybe declaring it the biggest possible packet and
treating/creating/sending
usb packets with different sizes internally would look better for usb-if ?

> 
>> 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
-- 
Best Regards,

Felipe Balbi
http://felipebalbi.com
[email protected]


-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.