Skip to content

Commit

Permalink
USB: gadget: Fix endpoint representation in ci13xxx_udc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavankumar Kondeti authored and Greg Kroah-Hartman committed Jan 23, 2011
1 parent 49d3df5 commit ca9cfea
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 131 deletions.
Loading

0 comments on commit ca9cfea

Please sign in to comment.