Re: file_storage gadget requires a sync...

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tue, 5 Jun 2007, Guennadi Liakhovetski wrote:

> > When you say the enumeration fails, what exactly goes wrong?  I've 
> > never tried using g_file_storage with a newly-created backing file.
> 
> Ok, the host says:
> 
> usb usb1: wakeup_rh (auto-start)
> hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004
> uhci_hcd 0000:00:1f.2: port 2 portsc 0093,00
> hub 1-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
> hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
> usb 1-2: new full speed USB device using uhci_hcd and address 69
> usb 1-2: default language 0x0409
> usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3
> usb 1-2: Product: File-backed Storage Gadget
> usb 1-2: Manufacturer: Linux 2.6.20.1-rt8-dsa-mftd2x-2 with net2280
> usb 1-2: SerialNumber: 3238204E6F76
> usb 1-2: uevent
> usb 1-2: configuration #1 chosen from 1 choice
> usb 1-2: khubd timed out on ep0out len=0/0
> usb 1-2: can't set config #1, error -110
> drivers/usb/core/inode.c: creating file '069'
> hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004
> 
> and on USB-analyser I see an invalid out-transaction with an "invalid 
> toggle" and a setup transactio with only NAKs.

This looks like it has nothing to do with using "sync" or newly-created 
backing files.  Instead it resembles a problem for which a patch was 
recently submitted:

	http://marc.info/?l=linux-usb-devel&m=118053809808501&w=2

It hasn't been accepted yet, unfortunately.  If you can confirm that it 
fixes your problem, I'll urge Greg to merge it in time for 2.6.22.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[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.