/* Anything less than 2 or greater than 7 is weird, * so we'll ignore it. */ if (port < 2 || port > UHCI_RH_MAXCHILD) { 
/* Anything greater than 7 is weird so we'll ignore it. */ if (port > UHCI_RH_MAXCHILD) { 
static int uhci_reset(struct usb_hcd *hcd){	struct uhci_hcd *uhci = hcd_to_uhci(hcd);	unsigned io_size = (unsigned) hcd->rsrc_len;	int port;	uhci->io_addr = (unsigned long) hcd->rsrc_start;	/* The UHCI spec says devices must have 2 ports, and goes on to say	 * they may have more but gives no way to determine how many there	 * are.  However, according to the UHCI spec, Bit 7 of the port	 * status and control register is always set to 1.  So we try to	 * use this to our advantage.	 */	for (port = 0; port < (io_size - USBPORTSC1) / 2; port++) {		unsigned int portstatus;		portstatus = inw(uhci->io_addr + USBPORTSC1 + (port * 2));		if (!(portstatus & 0x0080))			break;	}	if (debug)		dev_info(uhci_dev(uhci), "detected %d ports\n", port);	/* Anything less than 2 or greater than 7 is weird,	 * so we'll ignore it.	 */	if (port < 2 || port > UHCI_RH_MAXCHILD) {		dev_info(uhci_dev(uhci), "port count misdetected? "				"forcing to 2 ports\n");		port = 2;	}	uhci->rh_numports = port;	/* Kick BIOS off this hardware and reset if the controller	 * isn't already safely quiescent.	 */	check_and_reset_hc(uhci);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/e07fefa6b212f43c40fdbc1a62de690d91a4b617/uhci-hcd.c/clean/drivers/usb/host/uhci-hcd.c