Re: [linux-usb-devel] I have puzzled about usb_request struct for udc driver

2006-05-18 Thread Alan Stern
On Thu, 18 May 2006, Peter Chen wrote: > 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 ful

Re: [linux-usb-devel] I have puzzled about usb_request struct for udc driver

2006-05-18 Thread Peter Chen
> > 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 f

Re: [linux-usb-devel] I have puzzled about usb_request struct for udc driver

2006-05-16 Thread David Brownell
On Monday 15 May 2006 6:50 pm, Peter Chen wrote: > And obvious,here the req is not NULL.But i don't know when the req is > assigned. You've asked variants of this question before, as I recall, but don't seem to have absorbed the answer: there are no requests in the endpoint's queue until the gad

Re: [linux-usb-devel] I have puzzled about usb_request struct for udc driver

2006-05-16 Thread Alan Stern
On Tue, 16 May 2006, Peter Chen wrote: > Hi,all > > When i develop udc driver,i can assign some values for the struct > of usb_request through fsg->setup(file_storage.c) at bus enumeration > But,as far as other ep's tx/rx are conterned,how to ensure the req > is not NULL when the other