]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: at91: fix the number of endpoint parameter
authorBo Shen <voice.shen@atmel.com>
Wed, 19 Feb 2014 02:07:43 +0000 (10:07 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 19 Feb 2014 19:46:48 +0000 (13:46 -0600)
commit0def5180662504eba51708b5b26715ddc22496bf
tree1856ac391a66330c1eb95cdefd0f838af8c1e867
parentc3751367a549be0bfc56705b518e643a7da65db3
usb: gadget: at91: fix the number of endpoint parameter

In sama5d3 SoC, there are 16 endpoints, which is different with
earlier SoCs (only have 7 endpoints). The USBA_NR_ENDPOINTS macro
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.

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/atmel_usba_udc.c