usb: m66592-udc buffer management update
commit4048e5ca29afbd747a16245f2bc4d1d521a6d0d0
authorMagnus Damm <damm@igel.co.jp>
Fri, 26 Jun 2009 06:59:17 +0000 (26 06:59 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 4 Jul 2009 15:32:19 +0000 (5 00:32 +0900)
tree146f052205317e5a01f0ca3b7ad4b58a3b6554c1
parent5084f61a4d6c9c7bfd3be07fbb5253c1a08cd568
usb: m66592-udc buffer management update

This patch updates the m66592-udc buffer management code.

Use fixed buffers for bulk and isochronous pipes, also make
sure to handle the isochronous-as-bulk case. With fixed buffers
there is no need to keep track of used buffers with bi_bufnum.

Also, this fixes a potential buffer offset problem where the
base offset incorrectly varies with the number of pipes used.

With this patch applied it is possible to use m66592-udc for
both Ethernet and Serial using CONFIG_USB_CDC_COMPOSITE.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/usb/gadget/m66592-udc.c
drivers/usb/gadget/m66592-udc.h