summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/m66592-udc.h
diff options
context:
space:
mode:
authorMagnus Damm2009-06-26 08:59:17 +0200
committerPaul Mundt2009-07-04 17:32:19 +0200
commit4048e5ca29afbd747a16245f2bc4d1d521a6d0d0 (patch)
tree146f052205317e5a01f0ca3b7ad4b58a3b6554c1 /drivers/usb/gadget/m66592-udc.h
parentsh: Use bootmem ontop of lmb for NUMA (diff)
downloadkernel-qcow2-linux-4048e5ca29afbd747a16245f2bc4d1d521a6d0d0.tar.gz
kernel-qcow2-linux-4048e5ca29afbd747a16245f2bc4d1d521a6d0d0.tar.xz
kernel-qcow2-linux-4048e5ca29afbd747a16245f2bc4d1d521a6d0d0.zip
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>
Diffstat (limited to 'drivers/usb/gadget/m66592-udc.h')
-rw-r--r--drivers/usb/gadget/m66592-udc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/m66592-udc.h b/drivers/usb/gadget/m66592-udc.h
index 286ce07e7960..9a9c2bf9fbd5 100644
--- a/drivers/usb/gadget/m66592-udc.h
+++ b/drivers/usb/gadget/m66592-udc.h
@@ -506,7 +506,6 @@ struct m66592 {
int interrupt;
int isochronous;
int num_dma;
- int bi_bufnum; /* bulk and isochronous's bufnum */
};
#define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget)