|
@@ -128,6 +128,13 @@ ep_matches (
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * If the protocol driver hasn't yet decided on wMaxPacketSize
|
|
|
|
+ * and wants to know the maximum possible, provide the info.
|
|
|
|
+ */
|
|
|
|
+ if (desc->wMaxPacketSize == 0)
|
|
|
|
+ desc->wMaxPacketSize = cpu_to_le16(ep->maxpacket);
|
|
|
|
+
|
|
/* endpoint maxpacket size is an input parameter, except for bulk
|
|
/* endpoint maxpacket size is an input parameter, except for bulk
|
|
* where it's an output parameter representing the full speed limit.
|
|
* where it's an output parameter representing the full speed limit.
|
|
* the usb spec fixes high speed bulk maxpacket at 512 bytes.
|
|
* the usb spec fixes high speed bulk maxpacket at 512 bytes.
|