diff mbox

[U-Boot,V3,09/20] usb: gadget: ether set wMaxPacketSize

Message ID 1375399657-25642-10-git-send-email-troy.kisky@boundarydevices.com
State Changes Requested
Delegated to: Marek Vasut
Headers show

Commit Message

Troy Kisky Aug. 1, 2013, 11:27 p.m. UTC
set wMaxPacketSize for full speed descriptors

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
---
 drivers/usb/gadget/ether.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Marek Vasut Aug. 2, 2013, 10:59 a.m. UTC | #1
Dear Troy Kisky,

> set wMaxPacketSize for full speed descriptors

Why? Please elaborate more.
 
> Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
> ---
>  drivers/usb/gadget/ether.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
> index 579893c..f583c6e 100644
> --- a/drivers/usb/gadget/ether.c
> +++ b/drivers/usb/gadget/ether.c
> @@ -635,6 +635,7 @@ fs_source_desc = {
> 
>  	.bEndpointAddress =	USB_DIR_IN,
>  	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
> +	.wMaxPacketSize =	__constant_cpu_to_le16(64),
>  };
> 
>  static struct usb_endpoint_descriptor
> @@ -644,6 +645,7 @@ fs_sink_desc = {
> 
>  	.bEndpointAddress =	USB_DIR_OUT,
>  	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
> +	.wMaxPacketSize =	__constant_cpu_to_le16(64),
>  };
> 
>  static const struct usb_descriptor_header *fs_eth_function[11] = {

Best regards,
Marek Vasut
diff mbox

Patch

diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 579893c..f583c6e 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -635,6 +635,7 @@  fs_source_desc = {
 
 	.bEndpointAddress =	USB_DIR_IN,
 	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
+	.wMaxPacketSize =	__constant_cpu_to_le16(64),
 };
 
 static struct usb_endpoint_descriptor
@@ -644,6 +645,7 @@  fs_sink_desc = {
 
 	.bEndpointAddress =	USB_DIR_OUT,
 	.bmAttributes =		USB_ENDPOINT_XFER_BULK,
+	.wMaxPacketSize =	__constant_cpu_to_le16(64),
 };
 
 static const struct usb_descriptor_header *fs_eth_function[11] = {