From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Beno=C3=AEt_Th=C3=A9baudeau?= Date: Fri, 27 Jul 2012 16:16:03 +0200 (CEST) Subject: [U-Boot] [PATCH v2 2/5] ehci-hcd: Boost transfer speed In-Reply-To: <201207271607.02112.marex@denx.de> Message-ID: <833063906.704895.1343398563847.JavaMail.root@advansee.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek, On Fri, Jul 27, 2012 at 04:07:01 PM, Marek Vasut wrote: > > + qtd = memalign(USB_DMA_MINALIGN, qtd_count * sizeof(struct qTD)); > > + if (qtd == NULL) { > > + printf("unable to allocate TDs\n"); > > + return -1; > > + } > > + > > memset(qh, 0, sizeof(struct QH)); > > - memset(qtd, 0, 3 * sizeof(*qtd)); > > + memset(qtd, 0, qtd_count * sizeof(*qtd)); > > > > toggle = usb_gettoggle(dev, usb_pipeendpoint(pipe), > > usb_pipeout(pipe)); > > > [...] > > I'm cool with the rest, I'll think about the calculation a bit > though, since I'm > not certain about it right away and let you know. Will you be > submitting the > series again or shall I just merge 3/5 and 4/5, apply this one and be > done with > it? I'll resubmit the whole series. I'll first answer Stefan in this thread when possible. Regards, Beno?t