summaryrefslogtreecommitdiffstats
path: root/sys/mips
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/mips
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/mips')
-rw-r--r--sys/mips/cavium/usb/octusb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/mips/cavium/usb/octusb.c b/sys/mips/cavium/usb/octusb.c
index 01328c5..cad3ef5 100644
--- a/sys/mips/cavium/usb/octusb.c
+++ b/sys/mips/cavium/usb/octusb.c
@@ -1860,10 +1860,6 @@ octusb_ep_init(struct usb_device *udev, struct usb_endpoint_descriptor *edesc,
ep, udev->address, 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) {
switch (edesc->bmAttributes & UE_XFERTYPE) {
case UE_CONTROL:
OpenPOWER on IntegriCloud