USB-CDC: add missing variable in ether.c
PATCH 1/1 USB-CDC: add missing variable in ether.c
qmult was not defined if OTG dualspeed is set.
Signed-off-by Stefano Babic <[email protected]>
--- drivers/usb/gadget/ether.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
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))
Signature · 1 line
1.6.3.3
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.
Signed-off-by Stefano Babic <[email protected]>--- drivers/usb/gadget/ether.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)drivers/usb/gadget/ether.c +0
-0
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