From: Robert Baldyga Date: Thu, 20 Feb 2014 08:26:25 +0000 (+0100) Subject: usb: gadget: at91_udc: fix ep maxpacket initialisation X-Git-Tag: v3.15-rc1~137^2~25^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e06bcac79ce6bb49adee22a991206933b7ea52d;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed