if (bus->controller->power.power_state) { 
if (bus->controller->power.power_state.event) { 
show_registers (struct class_device *class_dev, char *buf){	struct usb_bus		*bus;	struct usb_hcd		*hcd;	struct ohci_hcd		*ohci;	struct ohci_regs __iomem *regs;	unsigned long		flags;	unsigned		temp, size;	char			*next;	u32			rdata;	bus = class_get_devdata(class_dev);	hcd = bus->hcpriv;	ohci = hcd_to_ohci(hcd);	regs = ohci->regs;	next = buf;	size = PAGE_SIZE;	spin_lock_irqsave (&ohci->lock, flags);	/* dump driver info, then registers in spec order */	ohci_dbg_sw (ohci, &next, &size,		"bus %s, device %s\n"		"%s\n"		"%s version " DRIVER_VERSION "\n",		hcd->self.controller->bus->name,		hcd->self.controller->bus_id,		hcd->product_desc,		hcd_name);	if (bus->controller->power.power_state) {		size -= scnprintf (next, size,			"SUSPENDED (no register access)\n");		goto done;	}	ohci_dump_status(ohci, &next, &size);	/* hcca */	if (ohci->hcca)		ohci_dbg_sw (ohci, &next, &size,			"hcca frame 0x%04x\n", ohci_frame_no(ohci));	/* other registers mostly affect frame timings */	rdata = ohci_readl (ohci, &regs->fminterval);	temp = scnprintf (next, size,			"fmintvl 0x%08x %sFSMPS=0x%04x FI=0x%04x\n",			rdata, (rdata >> 31) ? "FIT " : "",			(rdata >> 16) & 0xefff, rdata & 0xffff);	size -= temp;	next += temp;	rdata = ohci_readl (ohci, &regs->fmremaining);	temp = scnprintf (next, size, "fmremaining 0x%08x %sFR=0x%04x\n",			rdata, (rdata >> 31) ? "FRT " : "",			rdata & 0x3fff);	size -= temp;	next += temp;	rdata = ohci_readl (ohci, &regs->periodicstart);	temp = scnprintf (next, size, "periodicstart 0x%04x\n",			rdata & 0x3fff);	size -= temp;	next += temp;	rdata = ohci_readl (ohci, &regs->lsthresh);	temp = scnprintf (next, size, "lsthresh 0x%04x\n",			rdata & 0x3fff);	size -= temp;	next += temp;	/* roothub */	ohci_dump_roothub (ohci, 1, &next, &size);done:	spin_unlock_irqrestore (&ohci->lock, flags);	return PAGE_SIZE - size;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ca078bae813dd46c0f9b102fdfb4a3384641ff48/ohci-dbg.c/buggy/drivers/usb/host/ohci-dbg.c