From: Pavankumar Kondeti Date: Tue, 11 Jan 2011 03:49:22 +0000 (+0530) Subject: USB: gadget: Fix endpoint representation in ci13xxx_udc X-Git-Tag: v2.6.38-rc3~7^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca9cfea09fc5802074f79d086547c6363ddc894b;p=pandora-kernel.git USB: gadget: Fix endpoint representation in ci13xxx_udc Fix a bug where only half the number of endpoints supported by the hardware are exposed to gadget. If DEN filed in the DCCPARAMS register has 'N' then 'N' IN endpoints and 'N" OUT endpoints can be supported. But only 'N' bidirectional endpoints are added to the gadget ep_list. This patch also ensures that the data and handshake transactions of previous setup packet are flushed upon a new setup packet arrival on ep0. Signed-off-by: Pavankumar Kondeti Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed