mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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 0c243cd4a3671bf728f33378ac593c08d8367bc2)
This commit is contained in:
parent
55210b704a
commit
2ee407b606
1 changed files with 1 additions and 1 deletions
|
|
@ -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