usb: r8a66597-udc buffer management update
authorMagnus Damm <damm@igel.co.jp>
Wed, 19 Aug 2009 14:19:08 +0000 (14:19 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 20 Aug 2009 01:30:44 +0000 (10:30 +0900)
commitef5ce3b69028ea32aa87e98c9a3802e7c9f824b6
treedddda44be0639cb6c49b7d066394c9b41b33a391
parentd2e27bdf2870e507dd4abba1f56ca84ee6ae7232
usb: r8a66597-udc buffer management update

This patch updates the r8a66597-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.

The m66592 driver recently got fixed in a similar way.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/usb/gadget/r8a66597-udc.c
drivers/usb/gadget/r8a66597-udc.h