Skip to content

Commit

Permalink
usb gadget: minor USBCV fix for composite framework
Browse files Browse the repository at this point in the history
Fill in a reserved/unused device qualifier field to ensure that
the USBCV tests will always pass.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
David Lopo authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent 28874b7 commit c24f422
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*-------------------------------------------------------------------------*/
Expand Down

0 comments on commit c24f422

Please sign in to comment.