Problem
-------

USB pen is not always detected. The device is found 1-3 times for 10 tries of 
connecting device to computer.

The device is quite new, so I have not yet searched backwards for a kernel 
detecting it always, if there is any.

Software
--------

Debian unstable, 2.6.11-rc4 from kernel.org without preempt. 

Hardware: Acer Ferrari 3000 laptop
----------------------------------

0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8378 [KM400] Chipset Host 
Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
0000:00:07.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus 
Controller (rev 02)
0000:00:08.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 
Controller (PHY/Link)
0000:00:09.0 Network controller: Broadcom Corporation BCM4306 802.11b/g 
Wireless LAN Controller (rev 03)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. 
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. 
VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
0000:00:11.6 Communication controller: VIA Technologies, Inc. Intel 537 [AC97 
Modem] (rev 80)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 
74)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV250 5c61 [Radeon 
Mobility 9200 M9+] (rev 01)

Problem device: Buffalo Clipdrive 128MB 
---------------------------------------

/proc/bus/usb/devices when device is working:

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  9 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0ea0 ProdID=2168 Rev= 2.00
S:  Manufacturer=BUFFALO
S:  Product=ClipDrive
S:  SerialNumber=A1200000000125C5
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=125us

There is one other device always on bus, internal card reader:

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=0483 ProdID=1307 Rev= 1.80
S:  Manufacturer=Generic
S:  Product=USB Mass Storage Device
S:  SerialNumber=ABCDEF0123456789
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms


/var/log/messages
-----------------

OK case:

Feb 26 15:47:19 khlaptop kernel: usb 2-2: new full speed USB device using 
uhci_hcd and address 7
Feb 26 15:48:00 khlaptop kernel: usb 1-2: new high speed USB device using 
ehci_hcd and address 7
Feb 26 15:48:00 khlaptop kernel: usb 1-2: Product: ClipDrive
Feb 26 15:48:00 khlaptop kernel: usb 1-2: Manufacturer: BUFFALO
Feb 26 15:48:00 khlaptop kernel: usb 1-2: SerialNumber: A1200000000125C5
Feb 26 15:48:01 khlaptop kernel: scsi1 : SCSI emulation for USB Mass Storage 
devices
Feb 26 15:48:01 khlaptop usb.agent[5158]:      usb-storage: already loaded
Feb 26 15:48:06 khlaptop kernel:   Vendor: BUFFALO   Model: ClipDrive         
Rev: 2.00
Feb 26 15:48:06 khlaptop kernel:   Type:   Direct-Access                      
ANSI SCSI revision: 02
Feb 26 15:48:06 khlaptop kernel: sdb: Unit Not Ready, sense:
Feb 26 15:48:06 khlaptop kernel: : Current: sense key=0x6
Feb 26 15:48:06 khlaptop kernel:     ASC=0x28 ASCQ=0x0
Feb 26 15:48:06 khlaptop kernel: SCSI device sdb: 256000 512-byte hdwr sectors 
(131 MB)
Feb 26 15:48:06 khlaptop kernel: sdb: Write Protect is off
Feb 26 15:48:06 khlaptop kernel: SCSI device sdb: 256000 512-byte hdwr sectors 
(131 MB)
Feb 26 15:48:06 khlaptop kernel: sdb: Write Protect is off
Feb 26 15:48:06 khlaptop kernel:  /dev/scsi/host1/bus0/target0/lun0: p1
Feb 26 15:48:06 khlaptop kernel: Attached scsi removable disk sdb at scsi1, 
channel 0, id 0, lun 0
Feb 26 15:48:07 khlaptop scsi.agent[5198]: disk at 
/devices/pci0000:00/0000:00:10.3/usb1/1-2/1-2:1.0/host1/target1:0:0/1:0:0:0

Error case:

Feb 26 15:49:10 khlaptop kernel: usb 1-2: new high speed USB device using 
ehci_hcd and address 8
Feb 26 15:49:11 khlaptop kernel: usb 2-2: new full speed USB device using 
uhci_hcd and address 8
Feb 26 15:49:11 khlaptop kernel: usb 2-2: new full speed USB device using 
uhci_hcd and address 9

/var/log/debug with CONFIG_USB_DEBUG on
---------------------------------------

OK case:

Feb 26 15:48:00 khlaptop kernel: hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0004
Feb 26 15:48:00 khlaptop kernel: ehci_hcd 0000:00:10.3: GetStatus port 2 status 
001803 POWER sig=j  CSC CONNECT
Feb 26 15:48:00 khlaptop kernel: hub 1-0:1.0: port 2, status 0501, change 0001, 
480 Mb/s
Feb 26 15:48:00 khlaptop kernel: hub 1-0:1.0: debounce: port 2: total 100ms 
stable 100ms status 0x501
Feb 26 15:48:00 khlaptop kernel: ehci_hcd 0000:00:10.3: port 2 high speed
Feb 26 15:48:00 khlaptop kernel: ehci_hcd 0000:00:10.3: GetStatus port 2 status 
001005 POWER sig=se0  PE CONNECT
Feb 26 15:48:00 khlaptop kernel: ehci_hcd 0000:00:10.3: port 2 high speed
Feb 26 15:48:00 khlaptop kernel: ehci_hcd 0000:00:10.3: GetStatus port 2 status 
001005 POWER sig=se0  PE CONNECT
Feb 26 15:48:00 khlaptop kernel: usb 1-2: new device strings: Mfr=1, Product=2, 
SerialNumber=3
Feb 26 15:48:00 khlaptop kernel: usb 1-2: default language 0x0409
Feb 26 15:48:00 khlaptop kernel: usb 1-2: hotplug
Feb 26 15:48:00 khlaptop kernel: usb 1-2: adding 1-2:1.0 (config #1, interface 
0)
Feb 26 15:48:00 khlaptop kernel: usb 1-2:1.0: hotplug
Feb 26 15:48:00 khlaptop kernel: usb-storage 1-2:1.0: usb_probe_interface
Feb 26 15:48:00 khlaptop kernel: usb-storage 1-2:1.0: usb_probe_interface - got 
id
Feb 26 15:48:01 khlaptop kernel: usb-storage: device found at 7
Feb 26 15:48:01 khlaptop kernel: usb-storage: waiting for device to settle 
before scanning
Feb 26 15:48:06 khlaptop kernel: sdb: Mode Sense: 03 00 00 00
Feb 26 15:48:06 khlaptop kernel: sdb: Mode Sense: 03 00 00 00
Feb 26 15:48:06 khlaptop kernel: usb-storage: device scan complete

Error case:

Feb 26 15:49:10 khlaptop kernel: hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0004
Feb 26 15:49:10 khlaptop kernel: ehci_hcd 0000:00:10.3: GetStatus port 2 status 
001803 POWER sig=j  CSC CONNECT
Feb 26 15:49:10 khlaptop kernel: hub 1-0:1.0: port 2, status 0501, change 0001, 
480 Mb/s
Feb 26 15:49:10 khlaptop kernel: hub 1-0:1.0: debounce: port 2: total 100ms 
stable 100ms status 0x501
Feb 26 15:49:10 khlaptop kernel: ehci_hcd 0000:00:10.3: port 2 high speed
Feb 26 15:49:10 khlaptop kernel: ehci_hcd 0000:00:10.3: GetStatus port 2 status 
001005 POWER sig=se0  PE CONNECT
Feb 26 15:49:10 khlaptop kernel: ehci_hcd 0000:00:10.3: devpath 2 ep0in 3strikes
Feb 26 15:49:10 khlaptop kernel: ehci_hcd 0000:00:10.3: port 2 full speed --> 
companion
Feb 26 15:49:10 khlaptop kernel: ehci_hcd 0000:00:10.3: GetStatus port 2 status 
003801 POWER OWNER sig=j  CONNECT
Feb 26 15:49:10 khlaptop kernel: uhci_hcd 0000:00:10.0: wakeup_hc
Feb 26 15:49:10 khlaptop kernel: hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0004
Feb 26 15:49:10 khlaptop kernel: uhci_hcd 0000:00:10.0: port 2 portsc 0093,00
Feb 26 15:49:10 khlaptop kernel: hub 2-0:1.0: port 2, status 0101, change 0001, 
12 Mb/s
Feb 26 15:49:11 khlaptop kernel: hub 2-0:1.0: debounce: port 2: total 100ms 
stable 100ms status 0x101
Feb 26 15:49:11 khlaptop kernel: uhci_hcd 0000:00:10.0: uhci_result_control: 
failed with status 440000
Feb 26 15:49:11 khlaptop kernel: [df149240] link (1f1491b2) element (1f8a3040)
Feb 26 15:49:11 khlaptop kernel:   0: [df8a3040] link (1f8a3080) e0 Stalled 
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0dd6e440)
Feb 26 15:49:11 khlaptop kernel:   1: [df8a3080] link (1f8a30c0) e3 SPD Active 
Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN) (buf=0d9a2aa0)
Feb 26 15:49:11 khlaptop kernel:   2: [df8a30c0] link (00000001) e3 IOC Active 
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Feb 26 15:49:11 khlaptop kernel:
Feb 26 15:49:11 khlaptop kernel: uhci_hcd 0000:00:10.0: uhci_result_control: 
failed with status 440000
Feb 26 15:49:11 khlaptop kernel: [df149240] link (1f1491b2) element (1f8a3040)
Feb 26 15:49:11 khlaptop kernel:   0: [df8a3040] link (1f8a3080) e0 Stalled 
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=19db8ea0)
Feb 26 15:49:11 khlaptop kernel:   1: [df8a3080] link (1f8a30c0) e3 SPD Active 
Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN) (buf=0d9a2aa0)
Feb 26 15:49:11 khlaptop kernel:   2: [df8a30c0] link (00000001) e3 IOC Active 
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Feb 26 15:49:11 khlaptop kernel:
Feb 26 15:49:11 khlaptop kernel: uhci_hcd 0000:00:10.0: uhci_result_control: 
failed with status 440000
Feb 26 15:49:11 khlaptop kernel: [df149240] link (1f1491b2) element (1f8a3040)
Feb 26 15:49:11 khlaptop kernel:   0: [df8a3040] link (1f8a3080) e0 Stalled 
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0dd6e3e0)
Feb 26 15:49:11 khlaptop kernel:   1: [df8a3080] link (1f8a30c0) e3 SPD Active 
Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN) (buf=0d9a2aa0)
Feb 26 15:49:11 khlaptop kernel:   2: [df8a30c0] link (00000001) e3 IOC Active 
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Feb 26 15:49:11 khlaptop kernel:
Feb 26 15:49:11 khlaptop kernel: uhci_hcd 0000:00:10.0: uhci_result_control: 
failed with status 440000
Feb 26 15:49:11 khlaptop kernel: [df149240] link (1f1491b2) element (1f8a3040)
Feb 26 15:49:11 khlaptop kernel:   0: [df8a3040] link (1f8a3080) e0 Stalled 
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0dd6e3e0)
Feb 26 15:49:11 khlaptop kernel:   1: [df8a3080] link (1f8a30c0) e3 SPD Active 
Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN) (buf=0d9a2aa0)
Feb 26 15:49:11 khlaptop kernel:   2: [df8a30c0] link (00000001) e3 IOC Active 
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Feb 26 15:49:11 khlaptop kernel:
Feb 26 15:49:12 khlaptop kernel: hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0004

The difference seems to start from message "devpath 2 ep0in 3strikes": is 
there any way to get more debug info from that ?

After that it seems that device is handed to uhci, but it wont work there 
either.

The device itself works and I have used it successfully in many computers 
(linux too) and there has not been detection problems like this (or I have been 
very lucky). It also works in this computer, when detection works. 
I have also other USB 2.0 devices sometimes connected to this computer, 
external 
hard disk and external DVD-RW and they have worked normally. Maybe the 
difference 
is that they are in power on state (have external power supplies), when 
detection 
starts by plugging USB cable.

-- 
Kari Hämeenaho


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to