Re: [PATCH v2 1/2] USB: at91: fix the number of endpoint parameter

2014-02-19 Thread Nicolas Ferre
On 19/02/2014 03:07, Bo Shen : > In sama5d3 SoC, there are 16 endpoints, which is different with > earlier SoCs (only have 7 endpoints). The USBA_NR_ENDPOINTS micro you should read "macro". > is not suitable for sama5d3. So, get the endpoints number through > the udc->num_ep, which get from platf

[PATCH v2 1/2] USB: at91: fix the number of endpoint parameter

2014-02-18 Thread Bo Shen
In sama5d3 SoC, there are 16 endpoints, which is different with earlier SoCs (only have 7 endpoints). The USBA_NR_ENDPOINTS micro is not suitable for sama5d3. So, get the endpoints number through the udc->num_ep, which get from platform data for non-dt kernel, or parse from dt node. Signed-off-by: