> > Sounds like you have bugs to fix in your controller driver. > > I advise folks to get g_zero working first; it's simpler, and unlike > the file_storage gadget it doesn't use the deferred response mode. > That way you can get the basic driver behavior to work correctly before > going on to fancier things (like queue lengths greater than one, the > deferred response mode, and so forth). > > - Dave >
thx dave When i use g_zero instead of file_storage,i get the host mesg is: hub 1-0:1.0: debounce: port 8: total 1500ms stable 0ms status 0x0 hub 1-0:1.0: connect-debounce failed, port 8 disabled hub 2-0:1.0: state 5 ports 3 chg 0000 evt 0008 ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [2] = 0x00010101 CSC PPS CCS hub 2-0:1.0: port 3, status 0101, change 0001, 12 Mb/s hub 2-0:1.0: debounce: port 3: total 100ms stable 100ms status 0x101 ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [2] = 0x00100103 PRSC PPS PES CCS usb 2-3: new full speed USB device using ohci_hcd and address 3 ohci_hcd 0000:00:03.0: GetStatus roothub.portstatus [2] = 0x00100103 PRSC PPS PES CCS usb 2-3: new device strings: Mfr=25, Product=42, SerialNumber=101 usb 2-3: default language 0x0409 usb 2-3: Product: Gadget Zero usb 2-3: hotplug usb 2-3: configuration #3 chosen from 2 choices usb 2-3: adding 2-3:3.0 (config #3, interface 0) usb 2-3:3.0: hotplug usbserial_generic 2-3:3.0: usb_probe_interface usbserial_generic 2-3:3.0: usb_probe_interface - got id usbtest 2-3:3.0: usb_probe_interface usbtest 2-3:3.0: usb_probe_interface - got id usbtest 2-3:3.0: Linux gadget zero usbtest 2-3:3.0: full speed {control in/out bulk-in bulk-out} tests (+alt) What it means?It means my bus enumeration is right? Besides,i met another problem: I find when i do set_configuration,the set configuration execution is delayed,that causes my USB_BULK_GET_MAX_LUN_REQUEST can't be executed rightly(as fsg->config is 0 ).And the clear halt for ep1( CLEAR_FAETURE)is not right either.Then,i get "fsg full speed config #1" that means the SET_CONFIGURATION is right.but then,the host would not send USB_BULK_GET_MAX_LUN_REQUEST any more.However,at that time,the file_storage thinks the bus enumeration is finished,it begins to do scsi command,and attempts to read my ep1_out,my ep1 fifo's data is not right then. That's my thinking for it,is it right? if it is right,then how can i let set configuration finish before the host sends USB_BULK_GET_MAX_LUN_REQUEST command? ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel