On Tue, 2006-08-29 at 12:36 -0700, David Brownell wrote:
> On Sunday 27 August 2006 11:58 pm, Peter.Chen wrote:
> > Kernel Version is 2.6.15
> > 
> > At ep0_irq routine,the line 1543:
> > 
> > if(irq_src & UDC_EP0_RX){
> > 
> > ................
> > 
> > 
> > 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?
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


> 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

Reply via email to