[linux-usb-devel] about file_storage.c

2006-08-18 Thread Peter.Chen
Hi,all when i copy files from host to device or from device to host, i often meet such message "g_file_storage gadget: bulk reset request",as i received "SETUP 21.ff v i l",after receiving it,my kernel is dead,no oops error prints. I look up the USB2.0 spec,but i can't

Re: [linux-usb-devel] about file_storage.c

2006-08-19 Thread Peter.Chen
On Sat, 2006-08-19 at 10:45 -0400, Alan Stern wrote: > On Sat, 19 Aug 2006, Peter.Chen wrote: > > > thx Alan > > > > My host linux kernel is 2.6.11.10.is it old kernel or recent one? > > and what causes the port reset fails?software's or hardware's? &g

Re: [linux-usb-devel] about file_storage.c

2006-08-20 Thread Peter.Chen
Thx On Sun, 2006-08-20 at 13:31 -0400, Alan Stern wrote: > On Sun, 20 Aug 2006, Peter.Chen wrote: > > > I wouder what causes -104 error? > > That error means the request was cancelled. > > > I have a question,the error received > > error CBW causes -

Re: [linux-usb-devel] about file_storage.c

2006-08-21 Thread Peter.Chen
On Sun, 2006-08-20 at 13:31 -0400, Alan Stern wrote: > On Sun, 20 Aug 2006, Peter.Chen wrote: > > > I wouder what causes -104 error? > > That error means the request was cancelled. If the request was cancelled,the copy is aborted or not? If the software is pretty ok,it can g

[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

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){ > > > > &

[linux-usb-devel] Doubts of the xxxx_ep_queue callback function?

2006-03-27 Thread Peter.Chen
Hi,all Now,i have developed dm320 gadget driver. 1.I look through some udc's corresponding functions at kernel source.And i find there will implement IN/OUT through readfifo(writefifo) or DMA . Some days ago,Alan told me "file_storage.c will call usb_eq_queue(),which calls your dm320_gadget's ep-

Re: [linux-usb-devel] Doubts of the xxxx_ep_queue callback function?

2006-03-29 Thread Peter.Chen
(writefifo) or DMA,and i wonder when will call ep->ops->queue()?,and why at this time,the rx/tx interrupt will not be invoked? thx. On Tue, 2006-03-28 at 09:53 -0500, Alan Stern wrote: > On Mon, 27 Mar 2006, Peter.Chen wrote: > > > Hi,all > > Now,i have developed dm320 gadge

[linux-usb-devel] why my ep0->queue is alway empty?

2006-04-22 Thread Peter.Chen
Hi I have developed dm320 udc these periods,and my program is based on omap_udc.c in kernel tree.I meet a proble: when ep0 interrupt is invoked,it enters my dm320_ep0_control function. Below is my function body: struct dm320_ep *ep0 = &udc->ep[0]; struct dm320_req *req = NULL; INFO("t

Re: [linux-usb-devel] why my ep0->queue is alway empty?

2006-04-27 Thread Peter.Chen
function? thx. On Mon, 2006-04-24 at 08:20 -0700, David Brownell wrote: > On Saturday 22 April 2006 10:49 pm, Peter.Chen wrote: > > > > I can get the ep0->name which i assigned at static unsigned __init > > dm320_ep_setup routine.But list_empty(&ep0->queue)) is t

[linux-usb-devel] How to access mess-storage throught usb interface?

2006-05-10 Thread Peter.Chen
Hi,all When we insert mess-storage into usb interface,we can see sda(sdb...) at /dev.Now,maybe i finish the bus enumeration as i can see my usb device at /proc/bus/usb/devices. But how i can access my mess-storage?And how i can see sda,sdb at my /dev directory?or if bus enumeration is over,it

RE: [linux-usb-devel] How to access mess-storage throught usb interface?

2006-05-10 Thread Peter.Chen
No,i mean i can't find /dev/sda at my /dev .It means that my bus enumeration is error?Oh,if the bus enumeration is right, the system will create a device at my /dev at my host? thx On Wed, 2006-05-10 at 13:55 +, [EMAIL PROTECTED] wrote: > > >From: "Peter.Chen" &