From owner-freebsd-current@FreeBSD.ORG Sun Aug 12 01:57:43 2007 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FE4916A417 for ; Sun, 12 Aug 2007 01:57:43 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (adsl-75-1-14-242.dsl.scrm01.sbcglobal.net [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE3313C428 for ; Sun, 12 Aug 2007 01:57:42 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id l7C1vWcI060342; Sat, 11 Aug 2007 18:57:36 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200708120157.l7C1vWcI060342@gw.catspoiler.org> Date: Sat, 11 Aug 2007 18:57:32 -0700 (PDT) From: Don Lewis To: bruce@cran.org.uk In-Reply-To: <200708120133.l7C1XL54060302@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: current@FreeBSD.org Subject: Re: RE: Reboot on "shutdown -r" hangs after final "uptime ..." string X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2007 01:57:43 -0000 On 11 Aug, To: bruce@cran.org.uk wrote: > On 12 Aug, bruce@cran.org.uk wrote: > Something that you might want to also print is the value of > EOREAD4(sc, EHCI_USBSTS) > immediately before the > EOWRITE4(sc, EHCI_USBCMD, EHCI_CMD_HCRESET); > call in ehci_hcreset(). Bit 12 of this register (EHCI_STS_HCH) should > be a zero before the write to do the reset is performed. Correction, this bit should be a one before doing the reset. > Maybe > ehci_hcreset() needs to wait for that to happen (as is done in > ehci_init()), rather than just waiting a fixed amount of time. I misread the code in ehci_init(), which is waiting for a transition in the opposite direction. I don't know why, because the EHCI spec says that the 1->0 transition is immediate.