From: David Lopo Date: Tue, 1 Jul 2008 20:14:17 +0000 (-0700) Subject: usb gadget: minor USBCV fix for composite framework X-Git-Tag: firefly_0821_release~19541^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c24f42276b4c4467e82cdd5a941fb7f9400aeea0;p=firefly-linux-kernel-4.4.55.git usb gadget: minor USBCV fix for composite framework Fill in a reserved/unused device qualifier field to ensure that the USBCV tests will always pass. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index b3d302a6a081..85c876c1f150 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -294,6 +294,7 @@ static void device_qual(struct usb_composite_dev *cdev) /* ASSUME same EP0 fifo size at both speeds */ qual->bMaxPacketSize0 = cdev->desc.bMaxPacketSize0; qual->bNumConfigurations = count_configs(cdev, USB_DT_DEVICE_QUALIFIER); + qual->bRESERVED = 0; } /*-------------------------------------------------------------------------*/