diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-08-19 18:19:08 +0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-20 05:30:44 +0400 |
commit | ef5ce3b69028ea32aa87e98c9a3802e7c9f824b6 (patch) | |
tree | dddda44be0639cb6c49b7d066394c9b41b33a391 /drivers/usb/gadget/r8a66597-udc.h | |
parent | d2e27bdf2870e507dd4abba1f56ca84ee6ae7232 (diff) | |
download | linux-ef5ce3b69028ea32aa87e98c9a3802e7c9f824b6.tar.xz |
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.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/r8a66597-udc.h b/drivers/usb/gadget/r8a66597-udc.h index 7d9a325e7b6d..e653575d4ceb 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; |