mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
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>
This commit is contained in:
parent
7b2f390611
commit
2721dbf1dd
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue