mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Fix issue with Linux guest XHCI tablet probing.
The USB3 spec mandates that the device-descriptor max packet size be 512 bytes, which requires a field size of 9 since it is a power-of-2. Linux kernels recently started validating this field, resulting in the table not being probed and the cursor not working in bhyve VNC. Reviewed by: corvink PR: 275760 MFC after: 1 week
This commit is contained in:
parent
353e4c5a06
commit
0c243cd4a3
|
@ -154,7 +154,7 @@ static struct usb_device_descriptor umouse_dev_desc = {
|
|||
.bLength = sizeof(umouse_dev_desc),
|
||||
.bDescriptorType = UDESC_DEVICE,
|
||||
MSETW(.bcdUSB, UD_USB_3_0),
|
||||
.bMaxPacketSize = 8, /* max packet size */
|
||||
.bMaxPacketSize = 9, /* max pkt size, 2^9 = 512 */
|
||||
MSETW(.idVendor, 0xFB5D), /* vendor */
|
||||
MSETW(.idProduct, 0x0001), /* product */
|
||||
MSETW(.bcdDevice, 0), /* device version */
|
||||
|
|
Loading…
Reference in a new issue