1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Ensure that the XHCI driver will refresh the control endpoint settings

when re-enumerating a FULL speed device. Else the wrong max packet
setting might be used when trying to re-enumerate a FULL speed device.

MFC after:	3 days
This commit is contained in:
Hans Petter Selasky 2015-02-24 08:53:47 +00:00
parent bc8b78d393
commit bcb1c16516
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279233

View File

@ -1411,6 +1411,13 @@ xhci_set_address(struct usb_device *udev, struct mtx *mtx, uint16_t address)
pepext = xhci_get_endpoint_ext(udev,
&udev->ctrl_ep_desc);
/* ensure the control endpoint is setup again */
USB_BUS_LOCK(udev->bus);
pepext->trb_halted = 1;
pepext->trb_running = 0;
USB_BUS_UNLOCK(udev->bus);
err = xhci_configure_endpoint(udev,
&udev->ctrl_ep_desc, pepext,
0, 1, 1, 0, mps, mps, USB_EP_MODE_DEFAULT);