Re: [U-Boot] [PATCH] USB-CDC: wrong ep status used

2010-08-13 Thread Stefano Babic
Vitaly Kuzmichev wrote: > Hi Sergei, > > On 08/12/2010 09:05 PM, Sergei Shtylyov wrote: >> Hello. >> >> Stefano Babic wrote: >> We get oops here! >>> Agree, and the issue is not related to this patch, I missed to correct >>> it, thanks. If no one complains, I will send a single patch to fix b

Re: [U-Boot] [PATCH] USB-CDC: wrong ep status used

2010-08-13 Thread Vitaly Kuzmichev
Hi Sergei, On 08/12/2010 09:05 PM, Sergei Shtylyov wrote: > Hello. > > Stefano Babic wrote: > >>> We get oops here! > >> Agree, and the issue is not related to this patch, I missed to correct >> it, thanks. If no one complains, I will send a single patch to fix both >> problems (wrong ep status

Re: [U-Boot] [PATCH] USB-CDC: wrong ep status used

2010-08-12 Thread Sergei Shtylyov
Hello. Stefano Babic wrote: >> On 08/12/2010 01:41 AM, Stefano Babic wrote: >>> #if defined(DEV_CONFIG_CDC) >>> if (dev->status_ep) { >>> - dev->stat_req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); >>> - dev->stat_req->buf = status_req; >>> + dev->stat_req

Re: [U-Boot] [PATCH] USB-CDC: wrong ep status used

2010-08-12 Thread Stefano Babic
Vitaly Kuzmichev wrote: > Hi Stefano, > > On 08/12/2010 01:41 AM, Stefano Babic wrote: >> #if defined(DEV_CONFIG_CDC) >> if (dev->status_ep) { >> -dev->stat_req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); >> -dev->stat_req->buf = status_req; >> +dev->

Re: [U-Boot] [PATCH] USB-CDC: wrong ep status used

2010-08-12 Thread Vitaly Kuzmichev
Hi Stefano, On 08/12/2010 01:41 AM, Stefano Babic wrote: > #if defined(DEV_CONFIG_CDC) > if (dev->status_ep) { > - dev->stat_req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); > - dev->stat_req->buf = status_req; > + dev->stat_req = usb_ep_alloc_request

[U-Boot] [PATCH] USB-CDC: wrong ep status used

2010-08-11 Thread Stefano Babic
In case a status ep is requested, it is always allocated a request for the ep0, instead of the correct one saved in the dev structure. Signed-off-by: Stefano Babic --- drivers/usb/gadget/ether.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/ethe