Re: [linux-usb-devel] Is it a bug at omap_udc.c

2006-08-29 Thread David Brownell
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 > > > >

Re: [linux-usb-devel] Is it a bug at omap_udc.c

2006-08-29 Thread Peter.Chen
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

Re: [linux-usb-devel] Is it a bug at omap_udc.c

2006-08-29 Thread David Brownell
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. > th

[linux-usb-devel] Is it a bug at omap_udc.c

2006-08-27 Thread Peter.Chen
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