summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2008-01-28 00:47:05 +0000
committerjmcneill <jmcneill@NetBSD.org>2008-01-28 00:47:05 +0000
commite4e10d4f97c5aa7f38e6d3ce5ae414394dee753a (patch)
tree8219bb646ecda294beaa73320a47bc92a7a2bba7 /sys/dev
parent515d26c53b0d107697325570b67a15b52995b054 (diff)
Release port ownership on detach, so devices will be routed to companion
controllers. This allows 'drvctl -d ehci0' to disable USB 2.0 mode.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 5fd95361483..0a47915fab3 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.127 2007/12/09 20:28:23 jmcneill Exp $ */
+/* $NetBSD: ehci.c,v 1.128 2008/01/28 00:47:05 jmcneill Exp $ */
/*
* Copyright (c) 2004,2005 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.127 2007/12/09 20:28:23 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.128 2008/01/28 00:47:05 jmcneill Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -930,6 +930,8 @@ ehci_detach(struct ehci_softc *sc, int flags)
/* XXX free other data structures XXX */
mutex_destroy(&sc->sc_doorbell_lock);
+ EOWRITE4(sc, EHCI_CONFIGFLAG, 0);
+
return (rv);
}