cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
24,310 Views
Registered: ‎12-28-2012

USB device enumerate is not stable

Hi all,

 

I have a custom board which use 7z010 zynq soc and i try to make the usb work on my board.  It looks everything is ok,

 

but i encounter with an usb device enumerate errors.

 

[    0.790000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.790000] Iomap mem base 0xE0002000 to virtual 0xD0814000
[    0.800000] initializing XUSBPS-SOC USB Controller
[    0.800000] usb_hcd_xusbps_probe: No OTG assigned!
[    0.810000] Otg transceiver ulpi viewpoint = 0xD0814170
[    0.810000] ULPI transceiver vendor/product ID 0x0424/0x0007
[    0.810000] Found SMSC USB3320 ULPI transceiver.
[    0.820000] ULPI integrity check: passed.
[    0.820000] usb_hcd_xusbps_probe: OTG now assigned!
[    0.830000] xusbps-ehci xusbps-ehci.0: Xilinx PS USB EHCI Host Controller
[    0.830000] xusbps-ehci xusbps-ehci.0: new USB bus registered, assigned bus number 1
[    0.870000] xusbps-ehci xusbps-ehci.0: irq 53, io mem 0x00000000
[    0.890000] xusbps-ehci xusbps-ehci.0: USB 2.0 started, EHCI 1.00
[    0.890000] hub 1-0:1.0: USB hub found
[    0.890000] hub 1-0:1.0: 1 port detected
[    0.900000] Initializing USB Mass Storage driver...
[    0.900000] usbcore: registered new interface driver usb-storage
[    0.910000] USB Mass Storage support registered.
[    0.910000] Xilinx PS USB Device Controller driver (Apr 01, 2011)
[    0.920000] mousedev: PS/2 mouse device common for all mice
[    0.920000] Linux video capture interface: v2.00
[    0.920000] gspca_main: v2.14.0 registered
[    0.930000] usbcore: registered new interface driver uvcvideo
[    0.930000] USB Video Class driver (1.1.1)
[    0.940000] WDT OF probe
[    0.940000] xwdtps f8005000.swdt: Xilinx Watchdog Timer at 0xd0816000 with timeout 10 seconds
[    0.950000] sdhci: Secure Digital Host Controller Interface driver
[    0.950000] sdhci: Copyright(c) Pierre Ossman
[    0.950000] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.960000] mmc0: Hardware doesn't report any support voltages.
[    0.960000] sdhci platform registration failed
[    0.970000] usbcore: registered new interface driver usbhid
[    0.970000] usbhid: USB HID core driver
[    0.980000] ALSA device list:
[    0.980000]   No soundcards found.
[    0.980000] TCP cubic registered
[    0.990000] NET: Registered protocol family 17
[    0.990000] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    1.000000] Registering SWP/SWPB emulation handler
[    1.000000] registered taskstats version 1
[    1.000000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.010000] RAMDISK: gzip image found at block 0
[    1.270000] EXT4-fs (ram0): warning: mounting unchecked fs, running e2fsck is recommended
[    1.280000] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
[    1.290000] VFS: Mounted root (ext4 filesystem) on device 1:0.
[    1.290000] Freeing init memory: 156K
Starting rcS...
++ Mounting filesystem
++ Setting up mdev
++ Configure static IP 192.168.1.10
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
++ Starting telnet daemon
++ Starting http daemon
++ Starting ftp daemon
++ Starting dropbear (ssh) daemon
++ Starting OLED Display
++ Exporting LEDs & SWs
rcS Complete
zynq> 
[  114.180000] usb 1-1: new low-speed USB device number 2 using xusbps-ehci
[  114.380000] usb 1-1: device descriptor read/64, error -71
[  114.690000] usb 1-1: device descriptor read/64, error -71
[  114.920000] usb 1-1: new low-speed USB device number 3 using xusbps-ehci
[  115.120000] usb 1-1: device descriptor read/64, error -71
[  115.430000] usb 1-1: device descriptor read/64, error -71
[  115.660000] usb 1-1: new low-speed USB device number 4 using xusbps-ehci
[  116.130000] usb 1-1: device not accepting address 4, error -71
[  116.250000] usb 1-1: new low-speed USB device number 22 using xusbps-ehci
[  116.720000] usb 1-1: device not accepting address 5 error -71
[  116.720000] hub 1-0:1.0: unable to enumerate USB device on port 1
[  186.050000] usb 1-1: new high-speed USB device number 6 using xusbps-ehci
[  186.200000] scsi1 : usb-storage 1-1:1.0
[  187.600000] scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4
[  187.610000] sd 1:0:0:0: [sda] 15144960 512-byte logical blocks: (7.75 GB/7.22 GiB)
[  187.620000] sd 1:0:0:0: Attached scsi generic sg0 type 0
[  187.630000] sd 1:0:0:0: [sda] Write Protect is off
[  187.630000] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  187.650000]  sda: sda1
[  187.650000] sd 1:0:0:0: [sda] Attached SCSI removable disk
zynq> 
zynq> 
zynq> ls /dev/sda
sda   sda1
zynq> ls /dev/sda1 
/dev/sda1
zynq> ls
bin         lib         lost+found  proc        sbin        usr
dev         licenses    mnt         qf9700.ko   sys         var
etc         linuxrc     opt         root        tmp
zynq> mount /dev/sda1 /mnt/
zynq> ls /mnt/
IMTFaceRecognition.rar
OpenCV_b3.1.exe
Testing.rar
best_R.bmp
build-irisLocation-Desktop_Qt_5_1_1_MinGW_32bit-Debug
debug
irisLocation-win
new
output.bmp
output1.bmp
pl_iic_mt90.elf
qf9700.ko
qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe
quake3-1.32b-source.zip
renlianshibie.rar
second_R.bmp
video
zynq> umount /mnt/
zynq> 
zynq> lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 006: ID 0951:1665
zynq> 
zynq> [  270.370000] usb 1-1: USB disconnect, device number 23
[  270.670000] usb 1-1: new low-speed USB device number 24 using xusbps-ehci
[  270.870000] usb 1-1: device descriptor read/64, error -71
[  271.180000] usb 1-1: device descriptor read/64, error -71
[  271.410000] usb 1-1: new low-speed USB device number 25 using xusbps-ehci
[  271.610000] usb 1-1: device descriptor read/64, error -71
[  271.920000] usb 1-1: device descriptor read/64, error -71
[  272.150000] usb 1-1: new low-speed USB device number 26 using xusbps-ehci
[  272.620000] usb 1-1: device not accepting address 26, error -71
[  272.740000] usb 1-1: new low-speed USB device number 27 using xusbps-ehci
[  273.210000] usb 1-1: device not accepting address 27, error -71
[  273.210000] hub 1-0:1.0: unable to enumerate USB device on port 1
[  277.530000] usb 1-1: new high-speed USB device number 28 using xusbps-ehci
[  277.680000] scsi2 : usb-storage 1-1:1.0
[  279.080000] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4
[  279.090000] sd 2:0:0:0: [sda] 15144960 512-byte logical blocks: (7.75 GB/7.22 GiB)
[  279.100000] sd 2:0:0:0: Attached scsi generic sg0 type 0
[  279.110000] sd 2:0:0:0: [sda] Write Protect is off
[  279.110000] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  279.130000]  sda: sda1
[  279.130000] sd 2:0:0:0: [sda] Attached SCSI removable disk

zynq> 
zynq> lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 028: ID 0951:1665
zynq> 
zynq> [  299.110000] usb 1-1: USB disconnect, device number 28
[  299.410000] usb 1-1: new low-speed USB device number 29 using xusbps-ehci
[  299.610000] usb 1-1: device descriptor read/64, error -71
[  299.920000] usb 1-1: device descriptor read/64, error -71
[  300.150000] usb 1-1: new low-speed USB device number 30 using xusbps-ehci
[  300.350000] usb 1-1: device descriptor read/64, error -71
[  300.590000] hub 1-0:1.0: unable to enumerate USB device on port 1
[  301.110000] usb 1-1: new low-speed USB device number 31 using xusbps-ehci
[  301.250000] hub 1-0:1.0: unable to enumerate USB device on port 1
[  302.090000] usb 1-1: new low-speed USB device number 32 using xusbps-ehci
[  302.290000] usb 1-1: device descriptor read/64, error -71
[  302.600000] usb 1-1: device descriptor read/64, error -71
[  302.830000] usb 1-1: new low-speed USB device number 33 using xusbps-ehci
[  303.030000] usb 1-1: device descriptor read/64, error -71
[  303.340000] usb 1-1: device descriptor read/64, error -71
[  303.570000] usb 1-1: new low-speed USB device number 34 using xusbps-ehci
[  304.040000] usb 1-1: device not accepting address 34, error -71
[  304.160000] usb 1-1: new low-speed USB device number 35 using xusbps-ehci
[  304.630000] usb 1-1: device not accepting address 35, error -71
[  304.630000] hub 1-0:1.0: unable to enumerate USB device on port 1
[  306.940000] usb 1-1: new low-speed USB device number 36 using xusbps-ehci
[  307.140000] usb 1-1: device descriptor read/64, error -71
[  307.450000] usb 1-1: device descriptor read/64, error -71
[  307.680000] usb 1-1: new low-speed USB device number 37 using xusbps-ehci
[  307.880000] usb 1-1: device descriptor read/64, error -71
[  308.190000] usb 1-1: device descriptor read/64, error -71
[  308.360000] hub 1-0:1.0: unable to enumerate USB device on port 1
[  308.650000] usb 1-1: new high-speed USB device number 39 using xusbps-ehci
[  308.800000] scsi3 : usb-storage 1-1:1.0
[  310.200000] scsi 3:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4
[  310.210000] sd 3:0:0:0: [sda] 15144960 512-byte logical blocks: (7.75 GB/7.22 GiB)
[  310.210000] sd 3:0:0:0: Attached scsi generic sg0 type 0
[  310.220000] sd 3:0:0:0: [sda] Write Protect is off
[  310.230000] sd 3:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  310.240000]  sda: sda1
[  310.250000] sd 3:0:0:0: [sda] Attached SCSI removable disk

zynq> 
zynq> ls /dev/sda1 
/dev/sda1
zynq> mount /dev/sda1 /mnt/

 

The drivers always complains new low-speed USB device using xusbps-ehci, but i do not plug a usb device on the 

 

hub downstream port.  When i plug a U flash disk on the hub port, the usb device can be recognized, read and write.

 

But when i disconnect the U flash disk, driver still complains these errors.  When i repeat my action, usb device can

 

be recognized again a moment later.   Sometimes although the usb device enumerated successfully, kernel still say

 

USB disconnect  (but the usb device still attach on the hub port).   

 

I am a newer about usb and these really trouble me for a long time.   Does someone can give me some suggestion?!

 

Very thanks!!!

 

Best Regards,

Dec

0 Kudos
0 Replies