/* Finish up a host controller reset and update the recorded state.  */
static void finish_reset(struct uhci_hcd *uhci)
/* Finish up a host controller reset and update the recorded state.  */
static void finish_reset(struct uhci_hcd *uhci)
{
	int port;
	for (port = 0; port < uhci->rh_numports; ++port)
		outw(0, uhci->io_addr + USBPORTSC1 + (port * 2));
	uhci->port_c_suspend = uhci->resuming_ports = 0;
	uhci->rh_state = UHCI_RH_RESET;
	uhci->is_stopped = UHCI_IS_STOPPED;
	uhci_to_hcd(uhci)->state = HC_STATE_HALT;
	uhci_to_hcd(uhci)->poll_rh = 0;
	uhci->dead = 0;
}