diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-01-11 11:38:02 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-01-11 11:38:02 +0000 |
| commit | 5bc41c932f6756653e10708708dfcbf6ccf83575 (patch) | |
| tree | 5d9fad19a422695befca41910371cfe38c02a189 /sys/dev/usb/controller | |
| parent | 7e3300e505dc27f1a475c80a1acc68e17781ceeb (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/controller')
| -rw-r--r-- | sys/dev/usb/controller/xhci.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index e56f663f6b4b2..8d60ba212de80 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -1598,27 +1598,11 @@ static usb_error_t xhci_cmd_stop_ep(struct xhci_softc *sc, uint8_t suspend, uint8_t ep_id, uint8_t slot_id) { - struct usb_page_search buf_dev; - struct xhci_dev_ctx *pdev; struct xhci_trb trb; uint32_t temp; DPRINTF("\n"); - usbd_get_page(&sc->sc_hw.devs[slot_id].device_pc, 0, &buf_dev); - pdev = buf_dev.buffer; - usb_pc_cpu_invalidate(&sc->sc_hw.devs[slot_id].device_pc); - - switch (XHCI_EPCTX_0_EPSTATE_GET(pdev->ctx_ep[ep_id - 1].dwEpCtx0)) { - case XHCI_EPCTX_0_EPSTATE_DISABLED: - case XHCI_EPCTX_0_EPSTATE_STOPPED: - DPRINTF("Endpoint %u on slot %u is already stopped\n", - ep_id, slot_id); - return (USB_ERR_NORMAL_COMPLETION); - default: - break; - } - trb.qwTrb0 = 0; trb.dwTrb2 = 0; temp = XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_STOP_EP) | |
