From e4e10d4f97c5aa7f38e6d3ce5ae414394dee753a Mon Sep 17 00:00:00 2001 From: jmcneill Date: Mon, 28 Jan 2008 00:47:05 +0000 Subject: [PATCH] Release port ownership on detach, so devices will be routed to companion controllers. This allows 'drvctl -d ehci0' to disable USB 2.0 mode. --- sys/dev/usb/ehci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 5fd95361483d..0a47915fab33 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 -__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); }