From: "Sean O. Stalley" <[email protected]>

Change the default wMaxPacketSize value for EP0 of Full Speed
devices from the maximum possible size (64) to the minimum (8).
All full speed devices support a packet size of 8, but not all
support a size of 64.

No packet longer than 8 bytes is ever read from EP0 before this
value is changed from the default. Changing the default max packet
size to 8 helps clarify that.

Signed-off-by: Sean O. Stalley <[email protected]>
---
 drivers/usb/core/hub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 21b99b4..b4b8704 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -4204,7 +4204,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device 
*udev, int port1,
                 * the device descriptor to get bMaxPacketSize0 and
                 * then correct our initial guess.
                 */
-               udev->ep0.desc.wMaxPacketSize = cpu_to_le16(64);
+               udev->ep0.desc.wMaxPacketSize = cpu_to_le16(8);
                break;
        case USB_SPEED_LOW:             /* fixed at 8 */
                udev->ep0.desc.wMaxPacketSize = cpu_to_le16(8);
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to