summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/xhci.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-10-01 05:42:43 +0000
committerhselasky <hselasky@FreeBSD.org>2012-10-01 05:42:43 +0000
commitc081610de9c447caf8b6eb3137c7529f871ba3cb (patch)
treed1865f2fe48b18b7e4afe4cd5abe6f41cfde18ba /sys/dev/usb/controller/xhci.c
parentc5105a1581548a5e5614be938eeee28e123a0b4a (diff)
downloadFreeBSD-src-c081610de9c447caf8b6eb3137c7529f871ba3cb.zip
FreeBSD-src-c081610de9c447caf8b6eb3137c7529f871ba3cb.tar.gz
Inherit USB mode from RootHUB port where the USB device is connected.
Only RootHUB ports can be dual mode. Disallow OTG ports on external HUBs. This simplifies some checks in the USB controller drivers. MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/controller/xhci.c')
-rw-r--r--sys/dev/usb/controller/xhci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index 985efc8..2b8f0f3 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -3712,10 +3712,6 @@ xhci_ep_init(struct usb_device *udev, struct usb_endpoint_descriptor *edesc,
DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d\n",
ep, udev->address, edesc->bEndpointAddress, udev->flags.usb_mode);
- if (udev->flags.usb_mode != USB_MODE_HOST) {
- /* not supported */
- return;
- }
if (udev->parent_hub == NULL) {
/* root HUB has special endpoint handling */
return;
OpenPOWER on IntegriCloud