All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
@ 2018-06-28 17:54 Zeng Tao
  2018-06-29  8:49 ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Zeng Tao @ 2018-06-28 17:54 UTC (permalink / raw)
  To: u-boot

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 */
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
  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
  2018-06-29  9:47   ` Zengtao
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2018-06-29  8:49 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
  2018-06-29  8:49 ` Marek Vasut
@ 2018-06-29  9:47   ` Zengtao
  2018-06-29  9:52     ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Zengtao @ 2018-06-29  9:47 UTC (permalink / raw)
  To: u-boot

Hi Marek:

>-----Original Message-----
>From: Marek Vasut [mailto:marex at denx.de]
>Sent: Friday, June 29, 2018 4:50 PM
>To: Zengtao (B) <prime.zeng@hisilicon.com>
>Cc: u-boot at lists.denx.de
>Subject: Re: [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
>
>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 ?

Yes, this is a bugfix, but the issue is introduced more than 10years ago.

>
>--
>Best regards,
>Marek Vasut

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
  2018-06-29  9:47   ` Zengtao
@ 2018-06-29  9:52     ` Marek Vasut
  2018-06-30  1:10       ` Zengtao
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2018-06-29  9:52 UTC (permalink / raw)
  To: u-boot

On 06/29/2018 11:47 AM, Zengtao (B) wrote:
> Hi Marek:
> 
>> -----Original Message-----
>> From: Marek Vasut [mailto:marex at denx.de]
>> Sent: Friday, June 29, 2018 4:50 PM
>> To: Zengtao (B) <prime.zeng@hisilicon.com>
>> Cc: u-boot at lists.denx.de
>> Subject: Re: [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
>>
>> 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 ?
> 
> Yes, this is a bugfix, but the issue is introduced more than 10years ago.

I presume this shows up on hisilicon soc then ?

Anyway, applied

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
  2018-06-29  9:52     ` Marek Vasut
@ 2018-06-30  1:10       ` Zengtao
  2018-06-30  4:35         ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Zengtao @ 2018-06-30  1:10 UTC (permalink / raw)
  To: u-boot

HI Marek:


>-----Original Message-----
>From: Marek Vasut [mailto:marex at denx.de]
>Sent: Friday, June 29, 2018 5:52 PM
>To: Zengtao (B) <prime.zeng@hisilicon.com>
>Cc: u-boot at lists.denx.de
>Subject: Re: [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
>
>On 06/29/2018 11:47 AM, Zengtao (B) wrote:
>> Hi Marek:
>>
>>> -----Original Message-----
>>> From: Marek Vasut [mailto:marex at denx.de]
>>> Sent: Friday, June 29, 2018 4:50 PM
>>> To: Zengtao (B) <prime.zeng@hisilicon.com>
>>> Cc: u-boot at lists.denx.de
>>> Subject: Re: [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
>>>
>>> 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 ?
>>
>> Yes, this is a bugfix, but the issue is introduced more than 10years ago.
>
>I presume this shows up on hisilicon soc then ?

Yes, we see it on our soc.

>
>Anyway, applied
>

Thank you.

>--
>Best regards,
>Marek Vasut

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
  2018-06-30  1:10       ` Zengtao
@ 2018-06-30  4:35         ` Marek Vasut
  0 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2018-06-30  4:35 UTC (permalink / raw)
  To: u-boot

On 06/30/2018 03:10 AM, Zengtao (B) wrote:
> HI Marek:
> 
> 
>> -----Original Message-----
>> From: Marek Vasut [mailto:marex at denx.de]
>> Sent: Friday, June 29, 2018 5:52 PM
>> To: Zengtao (B) <prime.zeng@hisilicon.com>
>> Cc: u-boot at lists.denx.de
>> Subject: Re: [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
>>
>> On 06/29/2018 11:47 AM, Zengtao (B) wrote:
>>> Hi Marek:
>>>
>>>> -----Original Message-----
>>>> From: Marek Vasut [mailto:marex at denx.de]
>>>> Sent: Friday, June 29, 2018 4:50 PM
>>>> To: Zengtao (B) <prime.zeng@hisilicon.com>
>>>> Cc: u-boot at lists.denx.de
>>>> Subject: Re: [PATCH] usb: ohci: change the NUM_EDs from 8 to 32
>>>>
>>>> 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 ?
>>>
>>> Yes, this is a bugfix, but the issue is introduced more than 10years ago.
>>
>> I presume this shows up on hisilicon soc then ?
> 
> Yes, we see it on our soc.

OK

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-30  4:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.