Skip to content

Commit

Permalink
usb: gadget: mass_storage: Set max_speed to SSP
Browse files Browse the repository at this point in the history
Increase max_speed of the mass_storage driver for UDCs that support
SuperSpeed Plus. The composite driver will pass this value to UDC core
to set the device speed on probe (actual speed may be different
depending on whether the USB controller supports it or other external
factors).

Signed-off-by: Thinh Nguyen <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
Thinh Nguyen authored and Felipe Balbi committed Mar 13, 2018
1 parent 636ba13 commit 28af04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/legacy/mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static int msg_unbind(struct usb_composite_dev *cdev)
static struct usb_composite_driver msg_driver = {
.name = "g_mass_storage",
.dev = &msg_device_desc,
.max_speed = USB_SPEED_SUPER,
.max_speed = USB_SPEED_SUPER_PLUS,
.needs_serial = 1,
.strings = dev_strings,
.bind = msg_bind,
Expand Down

0 comments on commit 28af04b

Please sign in to comment.