From: Vitaly Kuzmichev Date: Thu, 12 Aug 2010 12:44:40 +0000 (+0400) Subject: USB-CDC: Add lost 'qmult' definition X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=2721dbf1ddeb32df07b64314da86d32a8157e331;p=u-boot.git 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 --- diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 3d871fa10e..a07738f80e 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))