On Tuesday 29 August 2006 6:57 pm, Peter.Chen wrote: > On Tue, 2006-08-29 at 12:36 -0700, David Brownell wrote:
> > > L1543:if(!req || (stat=read_fifo(eq0,req))<0) > > > > > > But i find the return value of read_fifo only would be 0 and 1. > > > then the latter condition is always wrong > > > > Documentation for that function says negative return would indicate > > an error ... but at some point it seems the error returns went away. > > What documentation?what is that function,is it read_fifo? As I said: documentation "for that function". See its comment... > By the way,when it would enter ep0_rx_state or ep0_tx_state at irq_src > routine?I never saw my program enter it See where those routines are called. Use The Source, Luke!! > > > > So it's not "wrong", although maybe that particular bit of code > > could be improved on. > > > > - Dave > > > > > > ------------------------------------------------------------------------- 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 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
