diff options
author | hselasky <hselasky@FreeBSD.org> | 2012-10-01 05:42:43 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2012-10-01 05:42:43 +0000 |
commit | c081610de9c447caf8b6eb3137c7529f871ba3cb (patch) | |
tree | d1865f2fe48b18b7e4afe4cd5abe6f41cfde18ba /sys/dev/usb/controller/at91dci.c | |
parent | c5105a1581548a5e5614be938eeee28e123a0b4a (diff) | |
download | FreeBSD-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/at91dci.c')
-rw-r--r-- | sys/dev/usb/controller/at91dci.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/usb/controller/at91dci.c b/sys/dev/usb/controller/at91dci.c index 8d3c1cb..55688d9 100644 --- a/sys/dev/usb/controller/at91dci.c +++ b/sys/dev/usb/controller/at91dci.c @@ -2277,10 +2277,6 @@ at91dci_ep_init(struct usb_device *udev, struct usb_endpoint_descriptor *edesc, if (udev->device_index != sc->sc_rt_addr) { - if (udev->flags.usb_mode != USB_MODE_DEVICE) { - /* not supported */ - return; - } if (udev->speed != USB_SPEED_FULL) { /* not supported */ return; |