Skip to contentSkip to conversation

USB-CDC: add missing variable in ether.c

PATCH New Stefano Babic 2 participants 2 messages Aug 11, 2010 – Aug 12, 2010 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB-CDC: add missing variable in ether.c

qmult was not defined if OTG dualspeed is set.

---
 drivers/usb/gadget/ether.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/usb/gadget/ether.c +2 -0
index e0ebf75..313f15f 100644
@@ -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))
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 1/1 USB-CDC: add missing variable in ether.c

Hello.

Quoted 12 lines · Stefano Babic

qmult was not defined if OTG dualspeed is set.

---
 drivers/usb/gadget/ether.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/usb/gadget/ether.c +0 -0
index e0ebf75..313f15f 100644

drivers/usb/gadget/ether.c static inline int is_cdc(struct eth_dev *dev) · line 151

Quoted 8 lines
drivers/usb/gadget/ether.c +2 -0
@@ -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