* [U-Boot] [PATCH] USB-CDC: add missing variable in ether.c
@ 2010-08-11 21:40 Stefano Babic
2010-08-12 16:54 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Stefano Babic @ 2010-08-11 21:40 UTC (permalink / raw)
To: u-boot
qmult was not defined if OTG dualspeed is set.
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
drivers/usb/gadget/ether.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index e0ebf75..313f15f 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -144,6 +144,8 @@ static inline int is_cdc(struct eth_dev *dev)
#ifdef CONFIG_USB_GADGET_DUALSPEED
#define DEVSPEED USB_SPEED_HIGH
+static unsigned qmult = 5;
+
/* for dual-speed hardware, use deeper queues at highspeed */
#define qlen(gadget) \
(DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1))
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] USB-CDC: add missing variable in ether.c
2010-08-11 21:40 [U-Boot] [PATCH] USB-CDC: add missing variable in ether.c Stefano Babic
@ 2010-08-12 16:54 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2010-08-12 16:54 UTC (permalink / raw)
To: u-boot
Hello.
Stefano Babic wrote:
> qmult was not defined if OTG dualspeed is set.
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
> drivers/usb/gadget/ether.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
> index e0ebf75..313f15f 100644
> --- a/drivers/usb/gadget/ether.c
> +++ b/drivers/usb/gadget/ether.c
> @@ -144,6 +144,8 @@ static inline int is_cdc(struct eth_dev *dev)
> #ifdef CONFIG_USB_GADGET_DUALSPEED
> #define DEVSPEED USB_SPEED_HIGH
>
> +static unsigned qmult = 5;
> +
> /* for dual-speed hardware, use deeper queues at highspeed */
> #define qlen(gadget) \
> (DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1))
Patch posted by Vitaly looks more complete:
http://lists.denx.de/pipermail/u-boot/2010-August/075412.html
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-12 16:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-11 21:40 [U-Boot] [PATCH] USB-CDC: add missing variable in ether.c Stefano Babic
2010-08-12 16:54 ` Sergei Shtylyov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.