mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +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.
PR: 275760
(cherry picked from commit 0c243cd4a3
)
This commit is contained in:
parent
00a82bd964
commit
48214dfab8
|
@ -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