svn commit: r367435 - head/sys/dev/usb

Bjoern A. Zeeb bz at FreeBSD.org
Fri Nov 6 22:40:01 UTC 2020


Author: bz
Date: Fri Nov  6 22:40:00 2020
New Revision: 367435
URL: https://svnweb.freebsd.org/changeset/base/367435

Log:
  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

Modified:
  head/sys/dev/usb/usb_hub.c

Modified: head/sys/dev/usb/usb_hub.c
==============================================================================
--- head/sys/dev/usb/usb_hub.c	Fri Nov  6 22:11:05 2020	(r367434)
+++ head/sys/dev/usb/usb_hub.c	Fri Nov  6 22:40:00 2020	(r367435)
@@ -720,8 +720,10 @@ repeat:
 		if ((sc->sc_st.port_change & UPS_C_CONNECT_STATUS) ||
 		    (!(sc->sc_st.port_status & UPS_CURRENT_CONNECT_STATUS))) {
 			if (timeout) {
-				DPRINTFN(0, "giving up port reset "
-				    "- device vanished\n");
+			       DPRINTFN(0, "giving up port %d reset - "
+				   "device vanished: change %#x status %#x\n",
+				   portno, sc->sc_st.port_change,
+				   sc->sc_st.port_status);
 				goto error;
 			}
 			timeout = 1;


More information about the svn-src-head mailing list