[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] USB support in 1-19-cur (EtherNat)





Am 17.09.2015 um 14:27 schrieb Alan Hourihane:
On 17/09/15 13:24, Alan Hourihane wrote:
This isn't unexpected. The mouse driver was written with TOS only in
mind, and to get it to work properly without consuming CPU, is to
implement USB interrupts correctly. That functionality is missing at
the moment within our USB stack. Alan.

I've just committed a patch which should help on MiNT. You should try
tomorrows build.


Wow, that was fast. I will try tomorrows build.

For those who are interested, i copied some console output into log files (toswin2 did not save to U:\ram\con.log for some reason, even though the checkbox was ticked).

The logs were done with usbdeb.km as suggested by David.

Logs attached to this mail.


Stefan
# This is the console output when loader.prg gets started, no USB devices plugged.


usb loader starting...
usb060.km
Load kernel module: \c\MINT\1-19-CUR\USB\usb060.km
pid  66 (loader): run_km(\c\MINT\1-19-CUR\USB\usb060.km) ok (bp 0x20A58160)!
pid  66 (loader): run_km: run=0x20A58260
 USB core API driver for FreeMiNT FreeMiNT DRIVERS
David Galvez 2010-2014.
Alan Hourihane 2013-2014.
Compiled Sep 17 2015.

pid  66 (loader): usb_init
Loading USB device modules:
pid  66 (loader): load_udd: enter (0x20A576B4, mouse.udd)
pid  66 (loader): load_udd: init 0x20A577B4, size 2124
pid  66 (loader): load_udd: 'mouse.udd' - text=20A577B4, data=20A57F58, bss=20A57FC4
 USB mouse class driver FreeMiNT DRIVERS
Ported, mixed and shaken by Alan Hourihane.
Compiled Sep  8 2015.

pid  66 (loader): udd_register: Registered device mouse (USB mouse class driver)
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): load_udd: enter (0x20A50160, storage.udd)
pid  66 (loader): load_udd: init 0x20A50260, size 21296
pid  66 (loader): load_udd: 'storage.udd' - text=20A50260, data=20A53EEC, bss=20A53F90
 USB mass storage class driver 1.0
Ported, mixed and shaken by David Galvez.
Atari partition support by Roger Burrows.
SCSIDRV support by Alan Hourihane.
Compiled Sep  8 2015.

pid  66 (loader): udd_register: Registered device storage (USB mass storage class driver)
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): udd_load: done
Loading USB host controller driver:
pid  66 (loader): load_ucd: enter (0x20A4C160, ethernat.ucd)
pid  66 (loader): load_ucd: init 0x20A4C260, size 8722
 Ethernat USB controller driver 0.1
Ported, mixed and shaken by David Galvez.
Compiled Sep  8 2015.

pid  66 (loader): ucd_register: Registered device ethernat (Ethernat USB driver)
pid  66 (loader): usb_new_device:
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x40
pid  66 (loader): usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 idx 0x0 length 0x0
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x12
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x9
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x19
pid  66 (loader): get_conf_no 0 Result 25, wLength 25
pid  66 (loader): if 0, ep 0
pid  66 (loader): ##EP epmaxpacketin[1] = 512
pid  66 (loader): set configuration 1
pid  66 (loader): usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 idx 0x0 length 0x0
pid  66 (loader): new device strings: Mfr=0, Product=1, SerialNumber=0
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 idx 0x0 length 0xFF
pid  66 (loader): USB device number 1 default language ID 0x409
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 idx 0x409 length 0xFF
pid  66 (loader): Manufacturer
pid  66 (loader): Product      ISP116x Root Hub
pid  66 (loader): SerialNumber
pid  66 (loader): USB hub found
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 idx 0x0 length 0x4
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 idx 0x0 length 0x9
pid  66 (loader): 2 ports detected
pid  66 (loader): ganged power switching
pid  66 (loader): standalone hub
pid  66 (loader): global over-current protection
pid  66 (loader): power on to power good time: 0ms
pid  66 (loader): hub controller current requirement: 0mA
pid  66 (loader): port 1 is not removable
pid  66 (loader): port 2 is not removable
pid  66 (loader): usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 idx 0x0 length 0x4
pid  66 (loader): get_hub_status returned status 0, change 0
pid  66 (loader): local power source is good
pid  66 (loader): no over-current condition exists
pid  66 (loader): enabling power on all ports

pid  66 (loader): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x8 idx 0x1 length 0x0
pid  66 (loader): port 0 returns

pid  66 (loader): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x8 idx 0x2 length 0x0
pid  66 (loader): port 0 returns

pid  66 (loader): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  66 (loader): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  66 (loader): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 idx 0x1 length 0x0
pid  66 (loader): port 1 returns 0
pid  66 (loader): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 idx 0x2 length 0x0
pid  66 (loader): port 2 returns 0
pid  66 (loader): Creating USB hub kernel thread
pid  66 (loader): load_ucd: return 0
pid  66 (loader): ucd_load: done
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  67 (hubd): Port 1 Status 100 Change 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): Port 2 Status 100 Change 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 idx 0x0 length 0x4
usb loader: Fclose()
usb loader: return

# This is the console output when loader.prg gets started, USB mouse plugged.



usb loader starting...
usb060.km
Load kernel module: \c\MINT\1-19-CUR\USB\usb060.km
pid  66 (loader): run_km(\c\MINT\1-19-CUR\USB\usb060.km) ok (bp 0x20A64160)!
pid  66 (loader): run_km: run=0x20A64260
 USB core API driver for FreeMiNT FreeMiNT DRIVERS
David Galvez 2010-2014.
Alan Hourihane 2013-2014.
Compiled Sep 17 2015.

pid  66 (loader): usb_init
Loading USB device modules:
pid  66 (loader): load_udd: enter (0x20A8CD84, mouse.udd)
pid  66 (loader): load_udd: init 0x20A8CE84, size 2124
pid  66 (loader): load_udd: 'mouse.udd' - text=20A8CE84, data=20A8D628, bss=20A8D694
 USB mouse class driver FreeMiNT DRIVERS
Ported, mixed and shaken by Alan Hourihane.
Compiled Sep  8 2015.

pid  66 (loader): udd_register: Registered device mouse (USB mouse class driver)
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): load_udd: enter (0x20A5E160, storage.udd)
pid  66 (loader): load_udd: init 0x20A5E260, size 21296
pid  66 (loader): load_udd: 'storage.udd' - text=20A5E260, data=20A61EEC, bss=20A61F90
 USB mass storage class driver 1.0
Ported, mixed and shaken by David Galvez.
Atari partition support by Roger Burrows.
SCSIDRV support by Alan Hourihane.
Compiled Sep  8 2015.

pid  66 (loader): udd_register: Registered device storage (USB mass storage class driver)
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): bad find_interface_driver params
pid  66 (loader): udd_load: done
Loading USB host controller driver:
pid  66 (loader): load_ucd: enter (0x20A5A160, ethernat.ucd)
pid  66 (loader): load_ucd: init 0x20A5A260, size 8722
 Ethernat USB controller driver 0.1
Ported, mixed and shaken by David Galvez.
Compiled Sep  8 2015.

pid  66 (loader): ucd_register: Registered device ethernat (Ethernat USB driver)
pid  66 (loader): usb_new_device:
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x40
pid  66 (loader): usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 idx 0x0 length 0x0
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x12
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x9
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x19
pid  66 (loader): get_conf_no 0 Result 25, wLength 25
pid  66 (loader): if 0, ep 0
pid  66 (loader): ##EP epmaxpacketin[1] = 512
pid  66 (loader): set configuration 1
pid  66 (loader): usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 idx 0x0 length 0x0
pid  66 (loader): new device strings: Mfr=0, Product=1, SerialNumber=0
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 idx 0x0 length 0xFF
pid  66 (loader): USB device number 1 default language ID 0x409
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 idx 0x409 length 0xFF
pid  66 (loader): Manufacturer
pid  66 (loader): Product      ISP116x Root Hub
pid  66 (loader): SerialNumber
pid  66 (loader): USB hub found
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 idx 0x0 length 0x4
pid  66 (loader): usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 idx 0x0 length 0x9
pid  66 (loader): 2 ports detected
pid  66 (loader): ganged power switching
pid  66 (loader): standalone hub
pid  66 (loader): global over-current protection
pid  66 (loader): power on to power good time: 0ms
pid  66 (loader): hub controller current requirement: 0mA
pid  66 (loader): port 1 is not removable
pid  66 (loader): port 2 is not removable
pid  66 (loader): usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 idx 0x0 length 0x4
pid  66 (loader): get_hub_status returned status 0, change 0
pid  66 (loader): local power source is good
pid  66 (loader): no over-current condition exists
pid  66 (loader): enabling power on all ports

pid  66 (loader): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x8 idx 0x1 length 0x0
pid  66 (loader): port 0 returns

pid  66 (loader): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x8 idx 0x2 length 0x0
pid  66 (loader): port 0 returns

pid  66 (loader): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  66 (loader): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  66 (loader): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 idx 0x1 length 0x0
pid  66 (loader): port 1 returns 0
pid  66 (loader): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 idx 0x2 length 0x0
pid  66 (loader): port 2 returns 0
pid  66 (loader): Creating USB hub kernel thread
pid  66 (loader): load_ucd: return 0
pid  66 (loader): ucd_load: done
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  67 (hubd): Port 1 Status 100 Change 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): Port 2 Status 301 Change 1
pid  67 (hubd): port 2 connection change
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 idx 0x2 length 0x0
pid  67 (hubd): hub_port_reset: resetting port 1...
pid  67 (hubd): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): portstatus 303, change 10, 1.5 Mb/s
pid  67 (hubd): STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 idx 0x2 length 0x0
pid  67 (hubd): usb_new_device:
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x40
pid  67 (hubd): hub_port_reset: resetting port 1...
pid  67 (hubd): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): portstatus 303, change 10, 1.5 Mb/s
pid  67 (hubd): STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x5, requesttype: 0x0, value 0x2 idx 0x0 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x12
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x9
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x22
pid  67 (hubd): get_conf_no 0 Result 34, wLength 34
pid  67 (hubd): unknown Description Type : 21
pid  67 (hubd): if 0, ep 0
pid  67 (hubd): ##EP epmaxpacketin[1] = 4
pid  67 (hubd): set configuration 1
pid  67 (hubd): usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 idx 0x0 length 0x0
pid  67 (hubd): new device strings: Mfr=1, Product=2, SerialNumber=0
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 idx 0x0 length 0xFF
pid  67 (hubd): USB device number 2 default language ID 0x409
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 idx 0x409 length 0xFF
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 idx 0x409 length 0xFF
pid  67 (hubd): Manufacturer Logitech
pid  67 (hubd): Product      USB-PS/2 Optical Mouse
pid  67 (hubd): SerialNumber
pid  67 (hubd): usb_control_msg: request: 0xB, requesttype: 0x21, value 0x1 idx 0x0 length 0x0
pid  67 (hubd): usb_control_msg: request: 0xA, requesttype: 0x21, value 0x0 idx 0x0 length 0x0
pid  67 (hubd): driver attached to iface 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 idx 0x0 length 0x4
usb loader: Fclose()
usb loader: return
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  67 (hubd): Port 1 Status 100 Change 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): Port 2 Status 100 Change 1
pid  67 (hubd): port 2 connection change
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 idx 0x2 length 0x0
pid  67 (hubd): USB device disconnect on device ISP116x Root Hub
pid  67 (hubd): USB disconnected, device number 2
pid  67 (hubd): USB device disconnected, device USB-PS/2 Optical Mouse

# This is the console output after a USB mouse gets plugged.

pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  67 (hubd): Port 1 Status 100 Change 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): Port 2 Status 301 Change 1
pid  67 (hubd): port 2 connection change
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 idx 0x2 length 0x0
pid  67 (hubd): hub_port_reset: resetting port 1...
pid  67 (hubd): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): portstatus 303, change 10, 1.5 Mb/s
pid  67 (hubd): STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 idx 0x2 length 0x0
pid  67 (hubd): usb_new_device:
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x40
pid  67 (hubd): hub_port_reset: resetting port 1...
pid  67 (hubd): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): portstatus 303, change 10, 1.5 Mb/s
pid  67 (hubd): STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x5, requesttype: 0x0, value 0x2 idx 0x0 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x12
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x9
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x22
pid  67 (hubd): get_conf_no 0 Result 34, wLength 34
pid  67 (hubd): unknown Description Type : 21
pid  67 (hubd): if 0, ep 0
pid  67 (hubd): ##EP epmaxpacketin[1] = 4
pid  67 (hubd): set configuration 1
pid  67 (hubd): usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 idx 0x0 length 0x0
pid  67 (hubd): new device strings: Mfr=1, Product=2, SerialNumber=0
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 idx 0x0 length 0xFF
pid  67 (hubd): USB device number 2 default language ID 0x409
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 idx 0x409 length 0xFF
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 idx 0x409 length 0xFF
pid  67 (hubd): Manufacturer Logitech
pid  67 (hubd): Product      USB-PS/2 Optical Mouse
pid  67 (hubd): SerialNumber
pid  67 (hubd): usb_control_msg: request: 0xB, requesttype: 0x21, value 0x1 idx 0x0 length 0x0
pid  67 (hubd): usb_control_msg: request: 0xA, requesttype: 0x21, value 0x0 idx 0x0 length 0x0
pid  67 (hubd): driver attached to iface 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 idx 0x0 length 0x4
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  67 (hubd): Port 1 Status 100 Change 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): Port 2 Status 100 Change 1
pid  67 (hubd): port 2 connection change
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 idx 0x2 length 0x0

# and gets unplugged

pid  67 (hubd): USB device disconnect on device ISP116x Root Hub
pid  67 (hubd): USB disconnected, device number 2
pid  67 (hubd): USB device disconnected, device USB-PS/2 Optical Mouse 
# This is the console output after a mass storage (SD card reader) is plugged, USB stack already running

pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x1 length 0x4
pid  67 (hubd): Port 1 Status 100 Change 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): Port 2 Status 101 Change 1
pid  67 (hubd): port 2 connection change
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 idx 0x2 length 0x0
pid  67 (hubd): hub_port_reset: resetting port 1...
pid  67 (hubd): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): portstatus 103, change 10, 12 Mb/s
pid  67 (hubd): STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 idx 0x2 length 0x0
pid  67 (hubd): usb_new_device:
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x40
pid  67 (hubd): hub_port_reset: resetting port 1...
pid  67 (hubd): usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 idx 0x2 length 0x4
pid  67 (hubd): portstatus 103, change 10, 12 Mb/s
pid  67 (hubd): STAT_C_CONNECTION = 0 STAT_CONNECTION = 1  USB_PORT_STAT_ENABLE 1
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 idx 0x2 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x5, requesttype: 0x0, value 0x2 idx 0x0 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 idx 0x0 length 0x12
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x9
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 idx 0x0 length 0x20
pid  67 (hubd): get_conf_no 0 Result 32, wLength 32
pid  67 (hubd): if 0, ep 0
pid  67 (hubd): if 0, ep 1
pid  67 (hubd): ##EP epmaxpacketin[1] = 64
pid  67 (hubd): ##EP epmaxpacketout[2] = 64
pid  67 (hubd): set configuration 1
pid  67 (hubd): usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 idx 0x0 length 0x0
pid  67 (hubd): new device strings: Mfr=3, Product=4, SerialNumber=2
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 idx 0x0 length 0xFF
pid  67 (hubd): USB device number 2 default language ID 0x409
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x303 idx 0x409 length 0xFF
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x304 idx 0x409 length 0xFF
pid  67 (hubd): usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 idx 0x409 length 0xFF
pid  67 (hubd): Manufacturer SanDisk
pid  67 (hubd): Product      SDDR-113
pid  67 (hubd): SerialNumber 000000009412
pid  67 (hubd): usb_control_msg: request: 0xFE, requesttype: 0xA1, value 0x0 idx 0x0 length 0x1
pid  67 (hubd): usb_control_msg: request: 0xFF, requesttype: 0x21, value 0x0 idx 0x0 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x2, value 0x0 idx 0x81 length 0x0
pid  67 (hubd): usb_control_msg: request: 0x1, requesttype: 0x2, value 0x0 idx 0x2 length 0x0
pid  67 (hubd): FAT-FS [F]: WARNING: mounting unchecked fs, running dosfsck is recommended
pid  67 (hubd): FAT-FS [F]: WARNING: mounting unchecked fs, running dosfsck is recommended
pid  67 (hubd): driver attached to iface 0
pid  67 (hubd): usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 idx 0x0 length 0x4