[U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
Marek Vasut
marex at denx.de
Fri Jun 29 08:49:46 UTC 2018
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 at 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
More information about the U-Boot
mailing list