]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: at91_udc: fix ep maxpacket initialisation
authorRobert Baldyga <r.baldyga@samsung.com>
Thu, 20 Feb 2014 08:26:25 +0000 (09:26 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Mar 2014 15:44:49 +0000 (09:44 -0600)
commit62ed127e406ec7a7d1e50503c9c2aba213c045b9
treeca865272f7cdf6024d552d5abae27fbf3ed9e7ed
parent3f77dcc0463925da27d0007cf67c07e27861efae
usb: gadget: at91_udc: fix ep maxpacket initialisation

This patch fixes problem with unnecessary usb_ep_set_maxpacket_limit() usage.
It should not be used in at91udc_probe() function, where maxpacket values are
set for field "maxpacket" of struct at91_ep, which is representation of
endpoint in driver internals. Function usb_ep_set_maxpacket_limit() is called
in udc_reinit() function, where struct usb_ep instances are initialised with
values set previously in struct at91_ep instances. So it's very important to
initialise it properly.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/at91_udc.c