]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: Fix endpoint representation in ci13xxx_udc
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Tue, 11 Jan 2011 03:49:22 +0000 (09:19 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 02:49:24 +0000 (18:49 -0800)
commitc3890fe492db265e3ae062aa904be36058d97a83
tree2f7efabdb50682043d7b236d9a0740c982a47593
parentc55dbdd06de949355ef8ee868e6a250952627efd
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 <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ci13xxx_udc.c
drivers/usb/gadget/ci13xxx_udc.h