PORT_CSC
if (portsc & PORT_CSC)
#define CDNSP_PORT_RW1CS (PORT_PED | PORT_CSC | PORT_RC | PORT_PLC)
#define PORT_CHANGE_BITS (PORT_CSC | PORT_WRC | PORT_RC | PORT_PLC | PORT_CEC)
if (portsc & PORT_CSC) {
if (temp & PORT_CSC)
ehci_writel(ehci, PORT_CSC, portsc_reg);
if ((portsc & PORT_CSC))
mask = PORT_CSC | PORT_PEC;
fotg210_writel(fotg210, temp | PORT_CSC, status_reg);
if (temp & PORT_CSC)
(status & PORT_CSC) ? " CSC" : "",
#define PORT_RWC_BITS (PORT_CSC | PORT_PEC)
(status & PORT_CSC) ? " CSC" : "",
(status & ~(PORT_CSC | PORT_PEC | PORT_OCC)),
ehci_writel(ehci, t1 | PORT_CSC, reg);
ehci_writel(ehci, status | PORT_CSC, reg);
if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC)
mask = PORT_CSC | PORT_PEC | PORT_OCC;
mask = PORT_CSC | PORT_PEC;
ehci_writel(ehci, temp | PORT_CSC, status_reg);
if (temp & PORT_CSC)
#define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC)
mask = PORT_CSC | PORT_PEC | PORT_OCC;
mask = PORT_CSC | PORT_PEC;
writel((temp & ~PORT_RWC_BITS) | PORT_CSC, status_reg);
if (temp & PORT_CSC)
(status & PORT_CSC) ? " CSC" : "",
if (raw_port_status & PORT_CSC)
temp |= PORT_CSC | PORT_PEC | PORT_WRC |
mask = PORT_CSC | PORT_PEC | PORT_OCC | PORT_PLC | PORT_WRC | PORT_CEC;
if ((t1 & PORT_CSC) && wake_enabled) {
#define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_WRC | PORT_OCC | \
status = PORT_CSC;
#define PORT_CHANGE_MASK (PORT_CSC | PORT_PEC | PORT_WRC | PORT_OCC | \
(portsc & PORT_CSC) && !(portsc & PORT_CONNECT))
if (!(portsc & (PORT_CSC | PORT_CONNECT)))
t2 |= PORT_CSC;
if (portsc & PORT_CSC)
[PORT_CSC] = REG_FIELD(ISP176x_HC_PORTSC1, 1, 1),
[PORT_CSC] = REG_FIELD(ISP1763_HC_PORTSC1, 1, 1),
[PORT_CSC] = BIT(1),
isp1760_hcd_is_set(hcd, PORT_CSC)) {
isp1760_hcd_clear(hcd, PORT_CSC);
if (isp1760_hcd_is_set(hcd, PORT_CSC) ||
isp1760_hcd_clear(hcd, PORT_CSC);
isp1760_hcd_clear(hcd, PORT_CSC);
isp1760_hcd_set(hcd, PORT_CSC);
if (isp1760_hcd_is_set(hcd, PORT_CSC))
isp1760_hcd_clear(hcd, PORT_CSC);
#define TEGRA_PORTSC1_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC)
#define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC)