Date: Thu, 17 Feb 2022 11:07:42 +0000 From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 261989] USB Joystick disconnects every three seconds Message-ID: <bug-261989-19105-D9qYUKMBkf@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-261989-19105@https.bugs.freebsd.org/bugzilla/> References: <bug-261989-19105@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261989 --- Comment #4 from Jan Martin Mikkelsen <janm@transactionware.com> --- I have tried on four machines, including through a root hub, an unpowered h= ub and a powered hub. An iMac through an ordinary, unpowered, desktop hub conn= ects fine. I just tested on a test machine (Atom E3950 based) with a single root hub a= nd no other USB devices and: sysctl hw.usb.uhub.debug=3D9 sysctl hw.usb.dev.debug=3D9 sysctl hw.usb.debug=3D9 sysctl hw.usb.ctrl.debug=3D9 sysctl hw.usb.xhci.debug=3D9 sysctl hw.usb.ehci.debug=3D9 sysctl hw.usb.uhci.debug=3D9 sysctl hw.usb.ohci.debug=3D9 See the attachment for the full log. (Not my timezone, just the timezone of= the test machine.) At lot happens in the second 21:31:43. At the end of 21:31:43, the device is connected. In the second 21:31:45 there is a successful port status request= on port 4 with wPortChange=3D0. At 21:31:46 this happens: Feb 17 21:31:46 fitlet2-test kernel: xhci_interrupt_poll: Unhandled event = =3D 34 Feb 17 21:31:46 fitlet2-test kernel: xhci_root_intr: port 4 changed Feb 17 21:31:46 fitlet2-test kernel: usb_needs_explore: Feb 17 21:31:46 fitlet2-test kernel: usb_bus_powerd: bus=3D0xfffffe0049b844= 28 Feb 17 21:31:46 fitlet2-test kernel: usb_bus_powerd: Recomputing power masks Feb 17 21:31:46 fitlet2-test kernel: xhci_set_hw_power: Followed by this a little later: Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: udev=3D0xfffff80013035000 bmRequestType=3D0xa3 bRequest=3D0x00 wValue=3D0x0= 000 wIndex=3D0x0004 wLength=3D0x0004 Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: Handle Request function is set Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: type=3D0xa3 request= =3D0x00 wLen=3D0x0004 wValue=3D0x0000 wIndex=3D0x0004 Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: UR_GET_STATUS i=3D4 Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: port status=3D0x000= 202a0 Feb 17 21:31:46 fitlet2-test kernel: uhub_read_port_status: port 4, wPortStatus=3D0x06a0, wPortChange=3D0x0001, err=3DUSB_ERR_NORMAL_COMPLETION Feb 17 21:31:46 fitlet2-test kernel: uhub_reattach_port: reattaching port 4 Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: udev=3D0xfffff80013035000 bmRequestType=3D0x23 bRequest=3D0x01 wValue=3D0x0= 010 wIndex=3D0x0004 wLength=3D0x0000 Feb 17 21:31:46 fitlet2-test kernel: usbd_do_request_flags: Handle Request function is set Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: type=3D0x23 request= =3D0x01 wLen=3D0x0000 wValue=3D0x0010 wIndex=3D0x0004 Feb 17 21:31:46 fitlet2-test kernel: xhci_roothub_exec: UR_CLEAR_PORT_FEATU= RE Feb 17 21:31:46 fitlet2-test kernel: usb_free_device: udev=3D0xfffff8006eaa= 4000 port=3D4 Feb 17 21:31:46 fitlet2-test kernel: usb_set_device_state: udev 0xfffff8006eaa4000 state CONFIGURED -> DETACHED What is event 34? Does this shed any light on things? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261989-19105-D9qYUKMBkf>