From: Anji jonnala Date: Mon, 2 May 2011 06:26:32 +0000 (+0530) Subject: USB: gadget: Initialize ep0 once while registering gadget in ci13xxx_udc X-Git-Tag: v3.0-rc1~337^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac1aa6a21747d02a93b1becb4ab19f1fc9de2beb;p=pandora-kernel.git USB: gadget: Initialize ep0 once while registering gadget in ci13xxx_udc Some of the simulators may cache the ep0 maxpacket size to zero if the ep0 dQh is not setup before enabling the pullup. Hence Setup ep0 and initialize the dQh fields once while registering the gadget(before enabling the pullup). HSUSB Chipidea link controller spec says ep0 is enabled always in the HW. Hence disabling and enabling the ep0 as a part of reset interrupt is unneccesary. Remove the disable/enable ep0 logic from reset interrupt handling. Signed-off-by: Anji jonnala Signed-off-by: Pavankumar Kondeti Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed