Subject: kern/31982: NetBSD 2.1 usb mouse does not work: makes uhub0 disable the port
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <mvondavier@yahoo.com>
List: netbsd-bugs
Date: 11/02/2005 19:11:00
>Number:         31982
>Category:       kern
>Synopsis:       NetBSD 2.1 usb mouse does not work: makes uhub0 disable the port
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 02 19:11:00 +0000 2005
>Originator:     Matthias von Davier
>Release:        2.1
>Organization:
>Environment:
NetBSD  2.1 NetBSD 2.1 (NYKERNEL) #8: Wed Nov  2 13:42:39 GMT 2005  root@:/usr/src/sys/arch/i386/compile/NYKERNEL i386

>Description:
USB mouse plugged in while booting makes the uhub0 device disable the port  the mouse is connected to. I am running NetBSD on a fujitsu notebook with a 800mhz transmeta crusoe, the dmesg with usbdebug=5 says about the usb system installed:

ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at irq 11
ohci_init: start
ohci0: OHCI version 1.0, legacy support

and more, I can send a copy of the dmesg output with debuglevel 5

usb_allocmem: large alloc 256
ohci_alloc_sed: allocating chunk
usb_allocmem: large alloc 4096
ohci_init: cold started
ohci0: resetting
usbd_match
usb0 at ohci0usbd_attach
: USB revision 1.0
usbd_new_device bus=0xc0bc1000 port=0 depth=0 speed=2
usbd_setup_pipe: dev=0xc0bc0580 iface=0x0 ep=0xc0bc05a4 pipe=0xc0bc0584
ohci_open: pipe=0xc0bc0500, addr=0, endpt=0 (0)
ohci_root_ctrl_control type=0x00 request=05
usbd_get_desc: type=1, index=0, len=8
usb_allocmem: adding fragments
ohci_root_ctrl_control type=0x80 request=06
usbd_new_device: adding unit addr=1, rev=100, class=9, subclass=0, protocol=0, maxpacket=64, len=18, speed=2
usbd_get_device_desc:
usbd_get_desc: type=1, index=0, len=18
ohci_root_ctrl_control type=0x80 request=06
usbd_new_device: new dev (addr 1), dev=0xc0bc0580, parent=0xc0bc0600
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control type=0x80 request=06
usbd_probe_and_attach: trying device specific drivers
uhub0 at usb0ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control type=0x80 request=06
ohci_root_ctrl_control type=0x80 request=06

uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
usbd_get_config_desc: confidx=0
usbd_get_desc: type=2, index=0, len=9
ohci_root_ctrl_control type=0x80 request=06
usbd_get_desc: type=2, index=0, len=25
ohci_root_ctrl_control type=0x80 request=06
usbd_set_config_index: (addr 1) cno=1 attr=0x40, selfpowered=1, power=0
usbd_set_config_index: set config 1
ohci_root_ctrl_control type=0x00 request=09
usbd_fill_iface_data: ifaceidx=0 altidx=0
usbd_find_idesc: idx=0(-1) altidx=0(0) len=9 type=2
usbd_find_idesc: idx=0(-1) altidx=0(0) len=9 type=4
usbd_fill_iface_data: found idesc nendpt=1
ohci_root_ctrl_control type=0xa0 request=06
uhub0: 2 ports with 2 removable, self powered
usbd_open_pipe_intr: address=0x81 flags=0x4 len=1
usbd_open_pipe: iface=0xc0bb5040 address=0x81 flags=0x1
usbd_setup_pipe: dev=0xc0bc0580 iface=0xc0bb5040 ep=0xc0af2ba0 pipe=0xc06d4f18
ohci_open: pipe=0xc0bc0380, addr=1, endpt=129 (1)
ohci_root_ctrl_control type=0x02 request=01
ohci_root_ctrl_control type=0x23 request=03
ohci_root_ctrl_transfer: set port power 1
ohci_root_ctrl_control type=0x23 request=03
ohci_root_ctrl_transfer: set port power 2

...

usb_discover
ohci_root_ctrl_control type=0xa3 request=00
ohci_root_ctrl_control type=0x23 request=01
ohci_rhsc_able: on=1
ohci_root_ctrl_control type=0x23 request=03
usbd_reset_port: port 1 reset done, error=NORMAL_COMPLETION
ohci_root_ctrl_control type=0xa3 request=00
ohci_root_ctrl_control type=0x23 request=01
ohci_rhsc_able: on=1
ohci_root_ctrl_control type=0xa3 request=00
usbd_new_device bus=0xc0bc1000 port=1 depth=1 speed=1
usbd_setup_pipe: dev=0xc0c12e80 iface=0x0 ep=0xc0c12ea4 pipe=0xc0c12e84
ohci_open: pipe=0xc0c12e00, addr=0, endpt=0 (1)
ohci_alloc_std: allocating chunk
usb_allocmem: large alloc 6144
ohci_device_control type=0x00, request=0x05, wValue=0x0002, wIndex=0x0000 len=0, addr=0, endpt=0

...

ohci_timeout: oxfer=0xc0bc0300
usb_add_task: task=0xc0bc0368
usb_task_thread: woke up task=0xc0bc0368
ohci_timeout_task: xfer=0xc0bc0300
ohci_abort_xfer: xfer=0xc0bc0300 pipe=0xc0c12e00 sed=0xc5f6f7a0
ohci_abort_xfer: stop ed=0xc5f6f7a0
ohci_abort_xfer: sed=
ED(0xc5f6f7a0) at 0x016a47a0: addr=0 endpt=0 maxp=8 flags=86000<LOWSPEED,SKIP>
tailp=0x01782770 headflags=1782770 headp=0x01782770 nexted=0x00000000
TD(0xc68be7d0) at 017827d0: 3e00000<TOG1,SETTOGGLE> delay=7 ec=0 cc=0
cbp=0x00000000 nexttd=0x00000000 be=0x016a5f87
TD(0xc68be7a0) at 017827a0: 2300000<IN,SETTOGGLE> delay=1 ec=0 cc=0
cbp=0x00000000 nexttd=0x017827d0 be=0x00000000
TD(0xc68be770) at 01782770: 0 delay=0 ec=0 cc=0
cbp=0x00000000 nexttd=0x00000000 be=0x00000000
ohci_abort_xfer: no hit
usb_new_device: set address 2 failed
usbd_remove_device: 0xc0c12e80
usbd_ar_pipe: pipe=0xc0c12e00
ohci_device_ctrl_close: pipe=0xc0c12e00
uhub0: device problem, disabling port 1
ohci_root_ctrl_control type=0x23 request=01
ohci_root_ctrl_control type=0xa3 request=00
usb_discover

>How-To-Repeat:
happens everytime I boot with USB mouse plugged in 
>Fix: