]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
USB-CDC: Add lost 'qmult' definition
authorVitaly Kuzmichev <vkuzmichev@mvista.com>
Thu, 12 Aug 2010 12:44:40 +0000 (16:44 +0400)
committerRemy Bohmer <linux@bohmer.net>
Mon, 20 Sep 2010 19:57:16 +0000 (21:57 +0200)
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>
drivers/usb/gadget/ether.c

index 3d871fa10ed92ce1c8db5fa013bba366aabb0d4c..a07738f80eb160e8b5d1a20d94ed5988ef2e2225 100644 (file)
@@ -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))