diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2014-12-19 11:00:41 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2014-12-19 11:00:41 +0100 |
commit | 90642f6dfc0667e259d6c8e2ce41adf3147ede91 (patch) | |
tree | 6ac91ad5565218f62af5c22185560037400fa318 | |
parent | 068ecdab500e551f313cd6b08dccc32c9d55e137 (diff) |
Revert "u_ether: Fix usb client usage with gadget ethernet"
This reverts commit 068ecdab500e551f313cd6b08dccc32c9d55e137.
-rw-r--r-- | drivers/usb/gadget/function/u_ether.c | 5 | ||||
-rw-r--r-- | drivers/usb/gadget/function/u_ether.h | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index e1a1ea8b41d2..6e6f87656e7b 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -85,10 +85,7 @@ struct eth_dev { #define RX_EXTRA 20 /* bytes guarding against rx overflows */ -/* Default value is 2 for double buffering. Change it to 1 as - * as a temporary fix for the USB client issue in Vybrid. - */ -#define DEFAULT_QLEN 1 /* double buffering by default */ +#define DEFAULT_QLEN 2 /* double buffering by default */ /* for dual-speed hardware, use deeper queues at high/super speed */ static inline int qlen(struct usb_gadget *gadget, unsigned qmult) diff --git a/drivers/usb/gadget/function/u_ether.h b/drivers/usb/gadget/function/u_ether.h index 936e7273efe0..334b38947916 100644 --- a/drivers/usb/gadget/function/u_ether.h +++ b/drivers/usb/gadget/function/u_ether.h @@ -22,10 +22,7 @@ #include "gadget_chips.h" -/* Default value is 1. Change it to 1 as a temporary fix for the - * USB client issue in Vybrid. - */ -#define QMULT_DEFAULT 1 +#define QMULT_DEFAULT 5 /* * dev_addr: initial value |