Reboot on "shutdown -r" hangs after final "uptime ..."
 string
    Don Lewis 
    truckman at FreeBSD.org
       
    Sat Aug 11 18:57:43 PDT 2007
    
    
  
On 11 Aug, To: bruce at cran.org.uk wrote:
> On 12 Aug, bruce at 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.
    
    
More information about the freebsd-current
mailing list