summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/r8a66597-udc.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-08-19 14:19:08 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-08-20 10:30:44 +0900
commitef5ce3b69028ea32aa87e98c9a3802e7c9f824b6 (patch)
treedddda44be0639cb6c49b7d066394c9b41b33a391 /drivers/usb/gadget/r8a66597-udc.h
parentd2e27bdf2870e507dd4abba1f56ca84ee6ae7232 (diff)
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>
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.h')
-rw-r--r--drivers/usb/gadget/r8a66597-udc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/r8a66597-udc.h b/drivers/usb/gadget/r8a66597-udc.h
index 7d9a325e7b6..e653575d4ce 100644
--- a/drivers/usb/gadget/r8a66597-udc.h
+++ b/drivers/usb/gadget/r8a66597-udc.h
@@ -112,7 +112,6 @@ struct r8a66597 {
u16 old_dvsq;
/* pipe config */
- unsigned short bi_bufnum; /* bulk and isochronous's bufnum */
unsigned char bulk;
unsigned char interrupt;
unsigned char isochronous;