[PATCH] USB: gadget: dfu: Add max_speed to dfu_driver

Sascha Hauer s.hauer at pengutronix.de
Thu Sep 25 07:26:30 PDT 2014


The MUSB driver checks for this field. If it doesn't contain
something useful the driver bails out.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/usb/gadget/dfu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c
index ddd765a..67a0703 100644
--- a/drivers/usb/gadget/dfu.c
+++ b/drivers/usb/gadget/dfu.c
@@ -722,6 +722,7 @@ static struct usb_composite_driver dfu_driver = {
 	.name		= "g_dfu",
 	.dev		= &dfu_dev_descriptor,
 	.strings	= dev_strings,
+	.max_speed	= USB_SPEED_HIGH,
 	.bind		= dfu_driver_bind,
 	.unbind		= dfu_driver_unbind,
 };
-- 
2.1.0




More information about the barebox mailing list