[PATCH] usb: core: fix SuperSpeed bMaxPacketSize0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bMaxPacketSize0 on SuperSpeed devices should be 9 (2 ^ 9 == 512)

Signed-off-by: Felipe Balbi <balbi@xxxxxx>
--- 

diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index a428aa0..6964a28 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2930,7 +2930,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
 					buf, GET_DESCRIPTOR_BUFSIZE,
 					initial_descriptor_timeout);
 				switch (buf->bMaxPacketSize0) {
-				case 8: case 16: case 32: case 64: case 255:
+				case 8: case 9: case 16: case 32: case 64: case 255:
 					if (buf->bDescriptorType ==
 							USB_DT_DEVICE) {
 						r = 0;

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux