On 12/8/05, Alan Stern <[EMAIL PROTECTED]> wrote:
>
> 110 is ETIMEDOUT; see include/asm-generic/errno.h.  In
> Documentation/usb/error-codes.txt it says that -ETIMEDOUT indicates
> either the device failed to respond to a request or a timeout expired
> before a transfer was completed.
>

> > [17179782.992000] hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0008
> > [17179783.868000] hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0008
> > [17179783.868000] ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus
> > [2] = 0x00 010100 CSC PPS
> > [17179783.868000] hub 1-0:1.0: port 3, status 0100, change 0001, 12 Mb/s
> > [17179783.996000] hub 1-0:1.0: debounce: port 3: total 100ms stable
> > 100ms status  0x100
>
> It looks like you unplugged the device and then plugged it in again four
> seconds later.
>

Yes I plugged and unplugged several times until it is recognized again.

Attached please find some more information. It seems to me if I unplug and
plug in PICkit 2 back slowly, it would be okay. If I unplug and plug back
a bit faster, then it starts to show problems. Is this normal among HID
device? Could it be that there is a possible firmware bug?

In fact there is a low speed PICkit 1 device (similar to PICkit 2 but it
is a low speed USB 1.1 device) which never show this problem. PICkit 2
is a full speed USB 2.0 device.

Regards,
Xiaofan


The following are the output of dmesg of three times unplug and plug.
1) First plug in : no problem

[EMAIL PROTECTED]:~$ dmesg
...
[17180156.504000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180156.504000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00030100 PESC CSC PPS
[17180156.504000] hub 2-0:1.0: port 2, status 0100, change 0003, 12 Mb/s
[17180156.504000] usb 2-2: USB disconnect, address 2
[17180156.504000] usb 2-2: usb_disable_device nuking all URBs
[17180156.504000] usb 2-2: unregistering interface 2-2:1.0
[17180156.504000] usb 2-2:1.0: hotplug
[17180156.524000] usb 2-2: unregistering device
[17180156.524000] usb 2-2: hotplug
[17180156.652000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x100
[17180156.756000] ohci_hcd 0000:00:02.1: suspend root hub
[17180179.300000] hub 3-0:1.0: state 5 ports 8 chg 0000 evt 0010
[17180179.300000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
001803 POWER sig=j CSC CONNECT
[17180179.300000] hub 3-0:1.0: port 4, status 0501, change 0001, 480 Mb/s
[17180179.428000] hub 3-0:1.0: debounce: port 4: total 100ms stable
100ms status 0x501
[17180179.484000] ehci_hcd 0000:00:02.2: port 4 full speed --> companion
[17180179.484000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
003001 POWER OWNER sig=se0 CONNECT
[17180179.484000] ohci_hcd 0000:00:02.1: wakeup
[17180179.688000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180179.688000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00010101 CSC PPS CCS
[17180179.688000] hub 2-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
[17180179.816000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x101
[17180179.888000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180179.944000] usb 2-2: new full speed USB device using ohci_hcd
and address 3
[17180180.016000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180180.092000] usb 2-2: ep0 maxpacket = 8
[17180180.108000] usb 2-2: skipped 1 descriptor after interface
[17180180.116000] usb 2-2: default language 0x0409
[17180180.124000] usb 2-2: new device strings: Mfr=1, Product=2, SerialNumber=3
[17180180.124000] usb 2-2: Product: PICkit 2 Microcontroller Programmer
[17180180.124000] usb 2-2: Manufacturer: Microchip Technology Inc.
[17180180.124000] usb 2-2: SerialNumber: PIC18F2550
[17180180.124000] usb 2-2: hotplug
[17180180.124000] usb 2-2: configuration #1 chosen from 2 choices
[17180180.132000] usb 2-2: adding 2-2:1.0 (config #1, interface 0)
[17180180.132000] usb 2-2:1.0: hotplug
[17180180.160000] usbhid 2-2:1.0: usb_probe_interface
[17180180.160000] usbhid 2-2:1.0: usb_probe_interface - got id
[17180180.168000] drivers/usb/core/file.c: looking for a minor, starting at 96
[17180180.168000] hiddev96: USB HID v0.01 Device [Microchip Technology
Inc. PICkit 2 Microcontroller Programmer] on usb-0000:00:02.1-2
[17180180.172000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180180.544000] usb 2-2: usbfs: interface 0 claimed by usbhid while
'pyk' sets config #1
[17180180.544000] drivers/usb/core/file.c: removing 96 minor

2) unplug and wait for sometime and plug in PICkit 2 again : no problem

[17180580.872000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180580.872000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00030100 PESC CSC PPS
[17180580.872000] hub 2-0:1.0: port 2, status 0100, change 0003, 12 Mb/s
[17180580.872000] usb 2-2: USB disconnect, address 3
[17180580.872000] usb 2-2: usb_disable_device nuking all URBs
[17180580.872000] usb 2-2: unregistering interface 2-2:1.0
[17180580.872000] usb 2-2:1.0: hotplug
[17180580.872000] usb 2-2: unregistering device
[17180580.872000] usb 2-2: hotplug
[17180581.052000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x100
[17180581.124000] ohci_hcd 0000:00:02.1: suspend root hub
[17180585.524000] hub 3-0:1.0: state 5 ports 8 chg 0000 evt 0010
[17180585.524000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
001803 POWER sig=j CSC CONNECT
[17180585.524000] hub 3-0:1.0: port 4, status 0501, change 0001, 480 Mb/s
[17180585.652000] hub 3-0:1.0: debounce: port 4: total 100ms stable
100ms status 0x501
[17180585.708000] ehci_hcd 0000:00:02.2: port 4 full speed --> companion
[17180585.708000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
003001 POWER OWNER sig=se0 CONNECT
[17180585.708000] ohci_hcd 0000:00:02.1: wakeup
[17180585.912000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180585.912000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00010101 CSC PPS CCS
[17180585.912000] hub 2-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
[17180586.040000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x101
[17180586.112000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180586.168000] usb 2-2: new full speed USB device using ohci_hcd
and address 4
[17180586.240000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180586.316000] usb 2-2: ep0 maxpacket = 8
[17180586.332000] usb 2-2: skipped 1 descriptor after interface
[17180586.340000] usb 2-2: default language 0x0409
[17180586.348000] usb 2-2: new device strings: Mfr=1, Product=2, SerialNumber=3
[17180586.348000] usb 2-2: Product: PICkit 2 Microcontroller Programmer
[17180586.348000] usb 2-2: Manufacturer: Microchip Technology Inc.
[17180586.348000] usb 2-2: SerialNumber: PIC18F2550
[17180586.348000] usb 2-2: hotplug
[17180586.348000] usb 2-2: configuration #1 chosen from 2 choices
[17180586.356000] usb 2-2: adding 2-2:1.0 (config #1, interface 0)
[17180586.356000] usb 2-2:1.0: hotplug
[17180586.384000] usbhid 2-2:1.0: usb_probe_interface
[17180586.384000] usbhid 2-2:1.0: usb_probe_interface - got id
[17180586.392000] drivers/usb/core/file.c: looking for a minor, starting at 96
[17180586.392000] hiddev96: USB HID v0.01 Device [Microchip Technology
Inc. PICkit 2 Microcontroller Programmer] on usb-0000:00:02.1-2
[17180586.396000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180586.620000] usb 2-2: usbfs: interface 0 claimed by usbhid while
'pyk' sets config #1
[17180586.620000] drivers/usb/core/file.c: removing 96 minor

3) 3rd time unplug and then plug in faster then 2) : got problem

[17180598.260000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180598.260000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00030100 PESC CSC PPS
[17180598.260000] hub 2-0:1.0: port 2, status 0100, change 0003, 12 Mb/s
[17180598.260000] usb 2-2: USB disconnect, address 4
[17180598.260000] usb 2-2: usb_disable_device nuking all URBs
[17180598.260000] usb 2-2: unregistering interface 2-2:1.0
[17180598.260000] usb 2-2:1.0: hotplug
[17180598.260000] usb 2-2: unregistering device
[17180598.260000] usb 2-2: hotplug
[17180598.400000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x100
[17180598.512000] ohci_hcd 0000:00:02.1: suspend root hub
[17180603.164000] hub 3-0:1.0: state 5 ports 8 chg 0000 evt 0010
[17180603.164000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
001803 POWER sig=j CSC CONNECT
[17180603.164000] hub 3-0:1.0: port 4, status 0501, change 0001, 480 Mb/s
[17180603.292000] hub 3-0:1.0: debounce: port 4: total 100ms stable
100ms status 0x501
[17180603.348000] ehci_hcd 0000:00:02.2: port 4 full speed --> companion
[17180603.348000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
003001 POWER OWNER sig=se0 CONNECT
[17180603.348000] ohci_hcd 0000:00:02.1: wakeup
[17180603.552000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180603.552000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00010101 CSC PPS CCS
[17180603.552000] hub 2-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
[17180603.680000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x101
[17180603.752000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180603.808000] usb 2-2: new full speed USB device using ohci_hcd
and address 5
[17180603.808000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180603.812000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180603.812000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180603.884000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180603.940000] usb 2-2: device descriptor read/64, error -110
[17180604.044000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.048000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.048000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.120000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180604.176000] usb 2-2: device descriptor read/64, error -110
[17180604.352000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180604.408000] usb 2-2: new full speed USB device using ohci_hcd
and address 6
[17180604.408000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.412000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.412000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.484000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180604.540000] usb 2-2: device descriptor read/64, error -110
[17180604.644000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.648000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.648000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0in
5ec20000 cc 5 --> status -110
[17180604.720000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180604.776000] usb 2-2: device descriptor read/64, error -110
[17180604.952000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180605.008000] usb 2-2: new full speed USB device using ohci_hcd
and address 7
[17180605.008000] ohci_hcd 0000:00:02.1: urb cde4ab40 path 2 ep0out
5ec20000 cc 5 --> status -110

4) wait for sometime, and the plug in again slowly, no problem again

[17180605.212000] ohci_hcd 0000:00:02.1: urb d0514240 path 2 ep0out
5ec20000 cc 5 --> status -110
[17180605.416000] usb 2-2: device not accepting address 7, error -110
[17180605.488000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180605.544000] usb 2-2: new full speed USB device using ohci_hcd
and address 8
[17180605.544000] ohci_hcd 0000:00:02.1: urb d8d2be40 path 2 ep0out
5ec20000 cc 5 --> status -110
[17180605.748000] ohci_hcd 0000:00:02.1: urb d8d2be40 path 2 ep0out
5ec20000 cc 5 --> status -110
[17180605.952000] usb 2-2: device not accepting address 8, error -110
[17180605.952000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180840.936000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180840.936000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00010100 CSC PPS
[17180840.936000] hub 2-0:1.0: port 2, status 0100, change 0001, 12 Mb/s
[17180841.064000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x100
[17180841.188000] ohci_hcd 0000:00:02.1: suspend root hub
[17180847.352000] hub 3-0:1.0: state 5 ports 8 chg 0000 evt 0010
[17180847.352000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
001803 POWER sig=j CSC CONNECT
[17180847.352000] hub 3-0:1.0: port 4, status 0501, change 0001, 480 Mb/s
[17180847.480000] hub 3-0:1.0: debounce: port 4: total 100ms stable
100ms status 0x501
[17180847.536000] ehci_hcd 0000:00:02.2: port 4 full speed --> companion
[17180847.536000] ehci_hcd 0000:00:02.2: GetStatus port 4 status
003001 POWER OWNER sig=se0 CONNECT
[17180847.536000] ohci_hcd 0000:00:02.1: wakeup
[17180847.740000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180847.740000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00010101 CSC PPS CCS
[17180847.740000] hub 2-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
[17180847.868000] hub 2-0:1.0: debounce: port 2: total 100ms stable
100ms status 0x101
[17180847.940000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180847.996000] usb 2-2: new full speed USB device using ohci_hcd
and address 9
[17180848.068000] ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus
[1] = 0x00100103 PRSC PPS PES CCS
[17180848.144000] usb 2-2: ep0 maxpacket = 8
[17180848.160000] usb 2-2: skipped 1 descriptor after interface
[17180848.168000] usb 2-2: default language 0x0409
[17180848.176000] usb 2-2: new device strings: Mfr=1, Product=2, SerialNumber=3
[17180848.176000] usb 2-2: Product: PICkit 2 Microcontroller Programmer
[17180848.176000] usb 2-2: Manufacturer: Microchip Technology Inc.
[17180848.176000] usb 2-2: SerialNumber: PIC18F2550
[17180848.176000] usb 2-2: hotplug
[17180848.176000] usb 2-2: configuration #1 chosen from 2 choices
[17180848.184000] usb 2-2: adding 2-2:1.0 (config #1, interface 0)
[17180848.184000] usb 2-2:1.0: hotplug
[17180848.184000] usbhid 2-2:1.0: usb_probe_interface
[17180848.184000] usbhid 2-2:1.0: usb_probe_interface - got id
[17180848.196000] drivers/usb/core/file.c: looking for a minor, starting at 96
[17180848.216000] hiddev96: USB HID v0.01 Device [Microchip Technology
Inc. PICkit 2 Microcontroller Programmer] on usb-0000:00:02.1-2
[17180848.216000] hub 2-0:1.0: state 5 ports 4 chg 0000 evt 0004
[17180848.448000] usb 2-2: usbfs: interface 0 claimed by usbhid while
'pyk' sets config #1
[17180848.448000] drivers/usb/core/file.c: removing 96 minor


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to