summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVitaly Kuzmichev <vkuzmichev@mvista.com>2010-08-12 16:44:40 +0400
committerRemy Bohmer <linux@bohmer.net>2010-09-20 21:57:16 +0200
commit2721dbf1ddeb32df07b64314da86d32a8157e331 (patch)
treedaa4c77026afeec66b299203c7721878dac7ad43 /drivers
parent7b2f3906113c5bee6e0bfc0e9ee92c2be3e99edb (diff)
downloadu-boot-imx-2721dbf1ddeb32df07b64314da86d32a8157e331.zip
u-boot-imx-2721dbf1ddeb32df07b64314da86d32a8157e331.tar.gz
u-boot-imx-2721dbf1ddeb32df07b64314da86d32a8157e331.tar.bz2
USB-CDC: Add lost 'qmult' definition
Add lost 'qmult' definition for High Speed devices and make it configurable through CONFIG_USB_ETH_QMULT. Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/ether.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 3d871fa..a07738f 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -140,6 +140,12 @@ static inline int is_cdc(struct eth_dev *dev)
#ifdef CONFIG_USB_GADGET_DUALSPEED
#define DEVSPEED USB_SPEED_HIGH
+#ifdef CONFIG_USB_ETH_QMULT
+#define qmult CONFIG_USB_ETH_QMULT
+#else
+#define qmult 5
+#endif
+
/* for dual-speed hardware, use deeper queues at highspeed */
#define qlen(gadget) \
(DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1))