From owner-p4-projects@FreeBSD.ORG Sat Jan 10 08:59:40 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 59B3A1065670; Sat, 10 Jan 2009 08:59:40 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10029106566B for ; Sat, 10 Jan 2009 08:59:40 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F2DC18FC0C for ; Sat, 10 Jan 2009 08:59:39 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0A8xd4T025071 for ; Sat, 10 Jan 2009 08:59:39 GMT (envelope-from weongyo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0A8xdmW025069 for perforce@freebsd.org; Sat, 10 Jan 2009 08:59:39 GMT (envelope-from weongyo@FreeBSD.org) Date: Sat, 10 Jan 2009 08:59:39 GMT Message-Id: <200901100859.n0A8xdmW025069@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to weongyo@FreeBSD.org using -f From: Weongyo Jeong To: Perforce Change Reviews Cc: Subject: PERFORCE change 155896 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2009 08:59:41 -0000 http://perforce.freebsd.org/chv.cgi?CH=155896 Change 155896 by weongyo@weongyo_ws on 2009/01/10 08:59:26 In USB 2.0 specification The USB System Software should guarantees a minumum of 10ms for reset recovery but it looks the USB1 framework doesn't follow it. So it looks sometimes it failed to re-attach or reenumerate devices after the device reset. With this patch, the fw loading operation of uath(4) works. Affected files ... .. //depot/projects/vap/sys/dev/usb/usb.c#8 edit Differences ... ==== //depot/projects/vap/sys/dev/usb/usb.c#8 (text+ko) ==== @@ -725,6 +725,7 @@ while (sc->sc_bus->needs_explore && !sc->sc_dying) { sc->sc_bus->needs_explore = 0; splx(s); + usbd_delay_ms(sc->sc_bus->root_hub, 10); sc->sc_bus->root_hub->hub->explore(sc->sc_bus->root_hub); s = splusb(); }