Google
  Web www.spinics.net

Re: gadget file storage with variable maxpacket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,

On Wed, 14 Nov 2007 12:02:31 -0500 (EST), Alan Stern
<stern@xxxxxxxxxxxxxxxxxxx> 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/
> _______________________________________________
> linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
-- 
Best Regards,

Felipe Balbi
http://felipebalbi.com
me@xxxxxxxxxxxxxxx


-------------------------------------------------------------------------
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/
_______________________________________________
linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[Home]     [Video for Linux]     [Photo]     [Yosemite Forum]     [Yosemite Photos]    [Video Projectors]     [PDAs]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [Free Dating]

  Powered by Linux