Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/usb_hub.c
Show First 20 Lines • Show All 714 Lines • ▼ Show 20 Lines | if (!(sc->sc_st.port_status & UPS_PORT_MODE_DEVICE)) { | ||||
if (err) { | if (err) { | ||||
goto error; | goto error; | ||||
} | } | ||||
/* check if something changed during port reset */ | /* check if something changed during port reset */ | ||||
if ((sc->sc_st.port_change & UPS_C_CONNECT_STATUS) || | if ((sc->sc_st.port_change & UPS_C_CONNECT_STATUS) || | ||||
(!(sc->sc_st.port_status & UPS_CURRENT_CONNECT_STATUS))) { | (!(sc->sc_st.port_status & UPS_CURRENT_CONNECT_STATUS))) { | ||||
if (timeout) { | if (timeout) { | ||||
DPRINTFN(0, "giving up port %d reset - " | DPRINTFN(1, "giving up port %d reset - " | ||||
"device vanished: change %#x status %#x\n", | "device vanished: change %#x status %#x\n", | ||||
portno, sc->sc_st.port_change, | portno, sc->sc_st.port_change, | ||||
sc->sc_st.port_status); | sc->sc_st.port_status); | ||||
goto error; | goto error; | ||||
} | } | ||||
timeout = 1; | timeout = 1; | ||||
goto repeat; | goto repeat; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,245 Lines • Show Last 20 Lines |