diff options
author | Vitaly Kuzmichev <vkuzmichev@mvista.com> | 2010-08-12 16:44:40 +0400 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2010-09-20 21:57:16 +0200 |
commit | 2721dbf1ddeb32df07b64314da86d32a8157e331 (patch) | |
tree | daa4c77026afeec66b299203c7721878dac7ad43 /drivers/usb | |
parent | 7b2f3906113c5bee6e0bfc0e9ee92c2be3e99edb (diff) |
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/usb')
-rw-r--r-- | drivers/usb/gadget/ether.c | 6 |
1 files changed, 6 insertions, 0 deletions
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)) |