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 ep's interrupt comes.Usually,we see
req = list_entry(ep->queue.next,        struct xxx_request, queue);
And obvious,here the req is not NULL.But i don't know when the req is
assigned.

Besides,I have a problem now.When i finished set_configuration,my
program is crashed,I look at the code of file_storage,and find 
it executes the get_next_command,it reads data from my ep1 fifo.i know
it will executes get_next_command when finish bus enumeration,and do
scsi command.Then what causes my program invokes the get_next_command?I
think i can't finish the bus enumeration.

the crash messages are below:(it repeats over and over)


       **********INT RESET**********
dm320_ep_queue:829> ep1_out queue req c0724460, len 64 buf c02f8000
invalid CBW: len 64 sig 0x55555555
received_cbw:2979> received_cbw...............
halt_bulk_in_endpoint:2317> halt_bulk_in_endpoint front


thx.




-------------------------------------------------------
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

Reply via email to