On Thu, 8 Dec 2005, Xiaofan Chen wrote:

> Thanks for the reply. I just tried the latest 2.6.14.3 kernel and the same 
> thing
> happens here. Hotplugging still causes problem with PICkit 2 programmer.
> Is this has anything to do with the fact it has dual configurations?

That's very unlikely.

> What does this "error -110" exactly mean?

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.

> Attached please find the error information.
> 
> Regards,
> Xiaofan
> 
> [EMAIL PROTECTED]:~$ uname -a
> Linux ubuntu 2.6.14.3 #1 Thu Dec 8 21:02:46 SGT 2005 i686 GNU/Linux
> [EMAIL PROTECTED]:~$ dmesg
> ...
> [17179781.816000] usb 1-3: device descriptor read/64, error -110

Can't tell exactly what sort of error this is because you omitted the 
preceding portion of the log.

> [17179781.992000] ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus
> [2] = 0x00 100103 PRSC PPS PES CCS
> [17179782.048000] usb 1-3: new full speed USB device using ohci_hcd
> and address 37
> [17179782.048000] ohci_hcd 0000:00:02.0: urb d8d32bc0 path 3 ep0out
> 5ec20000 cc 5 --> status -110
> [17179782.252000] ohci_hcd 0000:00:02.0: urb d8d32b40 path 3 ep0out
> 5ec20000 cc 5 --> status -110

These two errors usually mean the host did not receive a response to a
SETUP packet.  Either the device never saw the packet (bad cable) or the
device failed to respond.

> [17179782.456000] usb 1-3: device not accepting address 37, error -110

This is the same error being reported by the hub driver.

> [17179782.528000] ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus
> [2] = 0x00 100103 PRSC PPS PES CCS
> [17179782.584000] usb 1-3: new full speed USB device using ohci_hcd
> and address 38
> [17179782.584000] ohci_hcd 0000:00:02.0: urb d8d32bc0 path 3 ep0out
> 5ec20000 cc 5 --> status -110
> [17179782.788000] ohci_hcd 0000:00:02.0: urb d8d32bc0 path 3 ep0out
> 5ec20000 cc 5 --> status -110
> [17179782.992000] usb 1-3: device not accepting address 38, error -110

These errors look the same as the ones above.

> [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.

> [17179787.928000] hub 3-0:1.0: state 5 ports 8 chg 0000 evt 0020
> [17179787.928000] ehci_hcd 0000:00:02.2: GetStatus port 5 status
> 001803 POWER si g=j CSC CONNECT
> [17179787.928000] hub 3-0:1.0: port 5, status 0501, change 0001, 480 Mb/s
> [17179788.056000] hub 3-0:1.0: debounce: port 5: total 100ms stable
> 100ms status  0x501
> [17179788.112000] ehci_hcd 0000:00:02.2: port 5 full speed --> companion
> [17179788.112000] ehci_hcd 0000:00:02.2: GetStatus port 5 status
> 003001 POWER OW NER sig=se0 CONNECT
> [17179788.152000] hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0008
> [17179788.152000] ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus
> [2] = 0x00 010101 CSC PPS CCS
> [17179788.152000] hub 1-0:1.0: port 3, status 0101, change 0001, 12 Mb/s
> [17179788.280000] hub 1-0:1.0: debounce: port 3: total 100ms stable
> 100ms status  0x101
> [17179788.352000] ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus
> [2] = 0x00 100103 PRSC PPS PES CCS
> [17179788.408000] usb 1-3: new full speed USB device using ohci_hcd
> and address 39
> [17179788.480000] ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus
> [2] = 0x00 100103 PRSC PPS PES CCS
> [17179788.556000] usb 1-3: ep0 maxpacket = 8
> [17179788.572000] usb 1-3: skipped 1 descriptor after interface
> [17179788.580000] usb 1-3: default language 0x0409
> [17179788.588000] usb 1-3: new device strings: Mfr=1, Product=2, 
> SerialNumber=3
> [17179788.588000] usb 1-3: Product: PICkit 2 Microcontroller Programmer
> [17179788.588000] usb 1-3: Manufacturer: Microchip Technology Inc.
> [17179788.588000] usb 1-3: SerialNumber: PIC18F2550
> [17179788.588000] usb 1-3: hotplug
> [17179788.588000] usb 1-3: configuration #1 chosen from 2 choices
> [17179788.596000] usb 1-3: adding 1-3:1.0 (config #1, interface 0)
> [17179788.596000] usb 1-3:1.0: hotplug
> [17179788.600000] usbhid 1-3:1.0: usb_probe_interface
> [17179788.600000] usbhid 1-3:1.0: usb_probe_interface - got id
> [17179788.612000] drivers/usb/core/file.c: looking for a minor, starting at 96
> [17179788.612000] hiddev96: USB HID v0.01 Device [Microchip Technology
> Inc. PICk it 2 Microcontroller Programmer] on usb-0000:00:02.0-3
> [17179788.612000] hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0008
> [17179788.824000] usb 1-3: usbfs: interface 0 claimed by usbhid while
> 'pyk' sets  config #1
> [17179788.824000] drivers/usb/core/file.c: removing 96 minor

Alan Stern



-------------------------------------------------------
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_id=7637&alloc_id=16865&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