AnsweredAssumed Answered

USB 2.0 on USB host port on i.mx8m

Question asked by Richard Hu on Jul 10, 2018
Latest reply on Jul 11, 2018 by Richard Hu

Hello, NXP team:

 

We have a custom board based on i.mx8m.

We use the USB 2.0 connect so we only route USB 2.0 signal to USB connector on USB host port.

 

 

 

I test 5 different USB 3.0 flash drives:

1.Sandisk Ultra USB 3.0- 16GB :  OK
2.Kingston DataTraveler 3.0 -16GB : can't be formatted or written.
3.Verbatim STORE N GO - 64GB : can't be formatted or written.
4.TS-RDF5  SD  Transcend (Transcend USB 3.0 card reader) : OK
5.JetFlash Transcend 16GB : OK

 

2 of them can't be formatted.

 

When there is problem, there is error message shows:

"[   56.559920] usb 1-1: reset high-speed USB device number 2 using xhci-hcd"

 

I suspect the problem is caused by that the driver of XHCI controller can't switch to USB 2.0 mode when hand-shaking.

 

Do you know what is the problem?

 

How can i force XHCI controller to operate on USB 2.0 instead of USB 3.0?

 

The error log is as below:

 

[ 1411.879438] usb 1-1: new high-speed USB device number 5 using xhci-hcd
[ 1412.040330] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1412.053005] scsi host0: usb-storage 1-1:1.0
[ 1413.073907] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 3.0 PQ: 0 ANSI: 6
[ 1413.083752] sd 0:0:0:0: [sda] 30218842 512-byte logical blocks: (15.5 GB/14.4 GiB)
[ 1413.092549] sd 0:0:0:0: [sda] Write Protect is off
[ 1413.098137] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1413.112856] sda: sda1
[ 1413.118122] sd 0:0:0:0: [sda] Attached SCSI removable disk

# mkfs.ext4 /dev/sda1
mke2fs 1.43.4 (31-Jan-2017)
Creating filesystem with 3777099 4k blocks and 944704 inodes
Filesystem UUID: 3240b005-8829-416c-b3f6-c84fd75d3101
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: [ 1449.199376] usb 1-1: reset high-speed USB device number 5 using xhci-hcd
[ 1481.967362] usb 1-1: reset high-speed USB device number 5 using xhci-hcd

[ 1481.967362] usb 1-1: reset high-speed USB device number 5 using xhci-hcd
[ 1514.735369] usb 1-1: reset high-speed USB device number 5 using xhci-hcd

[ 1481.967362] usb 1-1: reset high-speed USB device number 5 using xhci-hcd
[ 1514.735369] usb 1-1: reset high-speed USB device number 5 using xhci-hcd
[ 1545.455371] usb 1-1: reset high-speed USB device number 5 using xhci-hcd

 

 

 

Thank you~!!!

 

BR,

 

Richard

Outcomes