USB: ci13xxx_udc: handle controllers with less than 16 EPs
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 10 Oct 2011 16:38:10 +0000 (18:38 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:44:45 +0000 (11:44 +0200)
commitdd39c358dff41394f20b623fc68be857b6d702ad
tree138976e023ddff4bfaaed93de6bf9e2e8da02efa
parent7bb4fdc602c6cc763185d88f58ed75c84eb32158
USB: ci13xxx_udc: handle controllers with less than 16 EPs

The ci13xxx_udc driver checks the number of endpoints in the udc
controller, however some routines expect that the hardware has 16
bidirectional endpoints.

This patch improves the driver to work on controllers with less than
16 endpoints like the udc controller found on freescale's
mx23 and mx28.

Tested-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/ci13xxx_udc.c
drivers/usb/gadget/ci13xxx_udc.h