summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/ehci.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/ehci.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/ehci.c')
-rw-r--r--sys/dev/usb/controller/ehci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/usb/controller/ehci.c b/sys/dev/usb/controller/ehci.c
index a6470b8..8131f60 100644
--- a/sys/dev/usb/controller/ehci.c
+++ b/sys/dev/usb/controller/ehci.c
@@ -3701,10 +3701,6 @@ ehci_ep_init(struct usb_device *udev, struct usb_endpoint_descriptor *edesc,
edesc->bEndpointAddress, udev->flags.usb_mode,
sc->sc_addr);
- if (udev->flags.usb_mode != USB_MODE_HOST) {
- /* not supported */
- return;
- }
if (udev->device_index != sc->sc_addr) {
if ((udev->speed != USB_SPEED_HIGH) &&
OpenPOWER on IntegriCloud