usb_hub: giving up port reset - device vanished
Improve the output of the recently often experienced debug message in order to gather further data. PR: 237666 Reviewed by: hselasky MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D27108
This commit is contained in:
parent
e771d59074
commit
2144eb7568
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367435
@ -720,8 +720,10 @@ uhub_reattach_port(struct uhub_softc *sc, uint8_t portno)
|
|||||||
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 reset "
|
DPRINTFN(0, "giving up port %d reset - "
|
||||||
"- device vanished\n");
|
"device vanished: change %#x status %#x\n",
|
||||||
|
portno, sc->sc_st.port_change,
|
||||||
|
sc->sc_st.port_status);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
timeout = 1;
|
timeout = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user