This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x and TUSB9261 problems with recognizing flash

Other Parts Discussed in Thread: TUSB9261, AM3352

HI,

I have a customer using the AM3352 with the TUSB9261.  They have 2 usb ports 0 and 1.  USB0 goes out to an external USB connector and USB1 to a flash socket. When they plug an adapter into USB0 they can get it to recognize the flash however the USB1 refuses to recognize it.

Console output when flash card is inserted into USB1 socket:

[ 7305.711267] usb 1-1: USB disconnect, device number 5
[ 7306.757411] usb 1-1: new high-speed USB device number 6 using musb-hdrc
[ 7306.898185] usb 1-1: New USB device found, idVendor=0451, idProduct=9261
[ 7306.905286] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7306.912825] usb 1-1: Product: TUSB9261 USB3.0 to SATA Bridge
[ 7306.918797] usb 1-1: Manufacturer: Texas Instruments
[ 7306.924045] usb 1-1: SerialNumber: 6BC466A34C61D412161329428CCB0C4C5
[ 7306.944616] scsi4 : usb-storage 1-1:1.0
[ 7306.948893] scsi_add_host_with_dma: scsi_setup_command_freelist error 0x0
[ 7306.961346] scsi_add_host_with_dma: device_add gendev error 0x0
[ 7306.980954] scsi_add_host_with_dma: device_add dev error 0x0
[ 7306.986954] scsi_add_host_with_dma: kzalloc ok
[ 7306.991693] scsi_add_host_with_dma: create work queue ok
[ 7306.997290] scsi_add_host_with_dma: scsi_sysfs_add_host error 0x0
[ 7307.003749] scsi_add_host_with_dma: scsi_proc_host_add done, and we're finished


If we look at the kernel logs (dmesg) during boot we can see the following with respect to the connection messages relating to the TUSB9261.

USB1 port configured in HOST mode:

[    0.144086] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1

[    0.183774] MUSB1 controller's USBSS revision = 4ea20800

[    0.183795] usbid_sw_ctrl 0

[    0.183808] musb1: Enabled SW babble control

[    0.183831] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)

[    0.183855] musb-hdrc: MHDRC RTL version 2.0

[    0.183868] musb-hdrc: setup fifo_mode 4

[    0.183902] musb-hdrc: 28/31 max ep, 16384/16384 memory

[    0.183917] musb-hdrc.1: bulk split disabled

[    0.183929] musb-hdrc.1: bulk combine disabled

[    0.184024] musb-hdrc musb-hdrc.1: MUSB HDRC host driver

[    0.184125] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1

[    0.185148] hub 1-0:1.0: USB hub found

[    0.185182] hub 1-0:1.0: 1 port detected

[    0.185774] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using PIO, IRQ 19

[    0.738315] usb 1-1: new high-speed USB device number 2 using musb-hdrc

[    0.891073] usb 1-1: New USB device found, idVendor=0451, idProduct=9261

[    0.891104] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[    0.891123] usb 1-1: Product: TUSB9261 USB3.0 to SATA Bridge

[    0.891140] usb 1-1: Manufacturer: Texas Instruments

[    0.891155] usb 1-1: SerialNumber: 29CD9A0BE76D416B161329428CCB0C4C5

[    4.715143] Initializing USB Mass Storage driver...

[    4.720679] scsi0 : usb-storage 1-1:1.0

[    4.724855] scsi_add_host_with_dma: scsi_setup_command_freelist error 0x0

[    4.732154] scsi_add_host_with_dma: device_add gendev error 0x0

[    4.738583] scsi_add_host_with_dma: device_add dev error 0x0

[    4.744493] scsi_add_host_with_dma: kzalloc ok

[    4.749150] scsi_add_host_with_dma: create work queue ok

[    4.754702] scsi_add_host_with_dma: scsi_sysfs_add_host error 0x0

[    4.761088] scsi_add_host_with_dma: scsi_proc_host_add done, and we're finished

[    4.769036] usbcore: registered new interface driver usb-storage

[    4.775311] USB Mass Storage support registered.

 


USB0 Configured OTG Mode, TUSB9261 connected to port on USB2514:

[    0.143894] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3

[    0.182139] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)

[    0.182333] musb-hdrc musb-hdrc.0: dma type: pio

[    0.182570] MUSB0 controller's USBSS revision = 4ea20800

[    0.182594] usbid_sw_ctrl 0

[    0.182608] musb0: Enabled SW babble control

[    0.182634] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)

[    0.182658] musb-hdrc: MHDRC RTL version 2.0

[    0.182673] musb-hdrc: setup fifo_mode 4

[    0.182710] musb-hdrc: 28/31 max ep, 16384/16384 memory

[    0.182727] musb-hdrc.0: bulk split disabled

[    0.182739] musb-hdrc.0: bulk combine disabled

[    0.183293] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using PIO, IRQ 18

[    0.183558] musb-hdrc musb-hdrc.1: dma type: pio

[ 1325.117774] usb 2-1.4: new high-speed USB device number 7 using musb-hdrc

[ 1325.238550] usb 2-1.4: New USB device found, idVendor=0451, idProduct=9261

[ 1325.245801] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 1325.253464] usb 2-1.4: Product: TUSB9261 USB3.0 to SATA Bridge

[ 1325.259573] usb 2-1.4: Manufacturer: Texas Instruments

[ 1325.264964] usb 2-1.4: SerialNumber: F42D6E4786FDD618

[ 1325.281503] scsi1 : usb-storage 2-1.4:1.0

[ 1325.285719] scsi_add_host_with_dma: scsi_setup_command_freelist error 0x0

[ 1325.309020] scsi_add_host_with_dma: device_add gendev error 0x0

[ 1325.321464] scsi_add_host_with_dma: device_add dev error 0x0

[ 1325.327411] scsi_add_host_with_dma: kzalloc ok

[ 1325.332112] scsi_add_host_with_dma: create work queue ok

[ 1325.337678] scsi_add_host_with_dma: scsi_sysfs_add_host error 0x0

[ 1325.344062] scsi_add_host_with_dma: scsi_proc_host_add done, and we're finished

[ 1326.358679] scsi 1:0:0:0: Direct-Access              SFCA4096H2BV4TO- 19   PQ: 0 ANSI: 6

[ 1326.377273] sd_probe

[ 1326.384149] sd-probe_async

[ 1326.386995] sd_revalidate_disk disk 0xdb421800, sdp 0xdb421000

[ 1326.393146] sd_revalidate_disk: online? 1

[ 1326.417214] sd 1:0:0:0: Attached scsi generic sg0 type 0

[ 1326.432692] sd_revalidate_disk: media_present? 1

[ 1326.441880] sd 1:0:0:0: [sda] 7793856 512-byte logical blocks: (3.99 GB/3.71 GiB)

[ 1326.451269] sd 1:0:0:0: [sda] Write Protect is off

[ 1326.456446] sd 1:0:0:0: [sda] Mode Sense: 17 00 00 00

[ 1326.461384] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

[ 1326.479403] sd_revalidate_disk disk 0xdb421800, sdp 0xdb421000

[ 1326.485541] sd_revalidate_disk: online? 1

[ 1326.490224] sd_revalidate_disk: media_present? 1

[ 1326.499117]  sda: sda1

[ 1326.507004] sd_revalidate_disk disk 0xdb421800, sdp 0xdb421000

[ 1326.513194] sd_revalidate_disk: online? 1

[ 1326.533501] sd_revalidate_disk: media_present? 1

[ 1326.547147] sd 1:0:0:0: [sda] Attached SCSI disk