25 ehci_dbg(ehci,
"set dev address %d for port %d\n", dev_addr, port_num);
27 ehci_dbg(ehci,
"invalid port number %d\n", port_num);
30 portsc = ehci_readl(ehci, &ehci->
regs->port_status[port_num-1]);
32 portsc |= dev_addr<<25;
33 ehci_writel(ehci, portsc, &ehci->
regs->port_status[port_num-1]);
47 portsc = &ehci->
regs->port_status[port-1];
48 val32 = ehci_readl(ehci, portsc);
50 ehci_dbg(ehci,
"LPM: no device attached\n");
54 ehci_writel(ehci, val32, portsc);
57 ehci_dbg(ehci,
"Sending LPM 0x%08x to port %d\n", val32, port);
58 ehci_writel(ehci, val32, portsc);
65 ehci_dbg(ehci,
"LPM: device ACK for LPM\n");
71 ehci_writel(ehci, val32, portsc);
74 ehci_writel(ehci, val32, portsc);
76 ehci_dbg(ehci,
"LPM: device does not ACK, disable LPM %d\n",
80 ehci_writel(ehci, val32, portsc);