All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
Date: Fri, 29 Jun 2018 10:49:46 +0200	[thread overview]
Message-ID: <6b0f48d9-1ae7-2ca2-d242-873f17e4f1c4@denx.de> (raw)
In-Reply-To: <1530208459-32073-1-git-send-email-prime.zeng@hisilicon.com>

On 06/28/2018 07:54 PM, Zeng Tao wrote:
> For ohci, the maximam supported endpoint number is 32(in and out), and
> now we have used (usb_pipeendpoint(pipe) << 1) to index the specified
> endpoint descritor, usb_pipeendpoint(pipe) can reach 0xf, so we need
> change the NUM_EDs from 8 to 32.
> 
> Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
> ---
>  drivers/usb/host/ohci.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h
> index 2350831..fba78dc 100644
> --- a/drivers/usb/host/ohci.h
> +++ b/drivers/usb/host/ohci.h
> @@ -359,7 +359,7 @@ typedef struct
>  } urb_priv_t;
>  #define URB_DEL 1
>  
> -#define NUM_EDS 8		/* num of preallocated endpoint descriptors */
> +#define NUM_EDS 32		/* num of preallocated endpoint descriptors */
>  
>  #define NUM_TD 64		/* we need more TDs than EDs */

Is this a bugfix for some recent patch ?

-- 
Best regards,
Marek Vasut

  reply	other threads:[~2018-06-29  8:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-28 17:54 [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32 Zeng Tao
2018-06-29  8:49 ` Marek Vasut [this message]
2018-06-29  9:47   ` Zengtao
2018-06-29  9:52     ` Marek Vasut
2018-06-30  1:10       ` Zengtao
2018-06-30  4:35         ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b0f48d9-1ae7-2ca2-d242-873f17e4f1c4@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.