From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Rae Date: Fri, 29 Jan 2016 10:19:10 -0800 Subject: [U-Boot] question regarding USB gadget driver (dwc2) In-Reply-To: <20160129174033.6ac53284@amdc2363> References: <56A810EB.6010102@broadcom.com> <201601270235.17028.marex@denx.de> <56A8244E.3090109@broadcom.com> <20160129174033.6ac53284@amdc2363> Message-ID: <56ABAD1E.3080905@broadcom.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Lukasz, On 16-01-29 08:40 AM, Lukasz Majewski wrote: > Hi Steve, > >> >> >> On 16-01-26 05:35 PM, Marek Vasut wrote: >>> On Wednesday, January 27, 2016 at 01:35:55 AM, Steve Rae wrote: >>>> Hi Marek & Lukasz, >>>> >>>> >>>> I have an issue running fastboot on my board (which is >>>> USB_SPEED_HIGH): >>>> >>>> => fastboot0 >>>> >>>> failed to enable in ep >>>> >>>> failed to enable in ep >>>> >>>> failed to enable in ep >>>> >>>> Because of this, fastboot does not even initialize properly, and I >>>> need to "^C" to break out? >>>> >>>> I have traced this the following code in >>>> "drivers/usb/gadget/dwc2_udc_otg.c": >>> >>> I will have to delegate this onto Lukasz, since he's the s3c gadget >>> expert. >>> >>> Take a look at: >>> [PATCH 1/2] usb: gadget: s3c_udc_otg: fixed max packet size check >>> for ep_in in high speed >>> >>> Best regards, >>> Marek Vasut >>> >> yes - I think that 'patchwork.ozlabs.org/patch/560029' would resolve >> my issue >> Thanks, Steve >> > > Ok, I see the point. The above patch should not bring any regression, > since if MPS < maxpacket(ep), then we will set the descriptor's > wMaxPacketSize as ep->ep.maxpacket. > > I'm just wondering if you could share the wMaxPacketSize of your > platform (lsusb -v on HOST). > > In my case it is: > wMaxPacketSize 0x0200 1x 512 bytes > > > on host: lsusb -v [... snip ...] Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 [... snip ...] Thanks, Steve