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.

PR:		275760

(cherry picked from commit 0c243cd4a3)
This commit is contained in:
Peter Grehan 2024-01-14 21:27:12 +10:00
parent 00a82bd964
commit 48214dfab8

View file

@ -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 */