2010-01-23 12:25:44     USB hub connection issues with BF526C

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-23 12:25:44     USB hub connection issues with BF526C

Sergei Zenkevich (BELARUS)

Message: 85043   

 

Hello,

 

I'm trying to connect the USB hub SMSC USB2512 to a custom board with the BF526C (rev 0.1). I'm using kernel 2009R1.1-RC1 (svn rev.7889). I configure the hub over through I2C interface and then load the module musb_hdrc (modprobe musb_hdrc). The hub is not found. At the USB D+ pin with an oscilloscope I see that after the configuration of the hub, it pull-up the D+ line but after loading the module is not reset USB bus state (reset signal). I test this issue on the BF526 EZ-BRD with the same kernel configuration and other external hub. On the BF526 EZ-BRD board hub found and I see reset USB bus state (reset signal).

 

Is there any errata on this issue, or anyone else faced a similar problem?

 

Thanks.

 

Custom board with the BF526C:

 

# modprobe musb_hdrc

musb_hdrc: version 6.0, pio, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.28.10-ADI-2009R1 musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

 

BF526 EZ-BRD board:

 

# modprobe musb_hdrc

musb_hdrc: version 6.0, pio, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.28.10-ADI-2009R1 musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

root:/> usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: configuration #1 chosen from 1 choice

hub 1-1:1.0: USB hub found

hub 1-1:1.0: 4 ports detected

usb 1-1: New USB device found, idVendor=0409, idProduct=005a

usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

usb 1-1.4: new high speed USB device using musb_hdrc and address 3

usb 1-1.4: configuration #1 chosen from 1 choice

usb 1-1.4: New USB device found, idVendor=1005, idProduct=b113

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

usb 1-1.4: USB disconnect, address 3

usb 1-1: reset high speed USB device using musb_hdrc and address 2

usb 1-1: USB disconnect, address 2

QuoteReplyEditDelete

 

 

2010-01-23 12:31:10     Re: USB hub connection issues with BF526C

Mike Frysinger (UNITED STATES)

Message: 85044   

 

please read the output:

musb_hdrc: kernel must blacklist external hubs

 

the hardware cannot support hubs

QuoteReplyEditDelete

 

 

2010-01-25 07:25:17     Re: USB hub connection issues with BF526C

Sergei Zenkevich (BELARUS)

Message: 85085   

 

Hi Mike, thanks for the reply.

 

 

 

We found a problem in our circuit. We have corrected the error and the hub began to work.

 

 

 

You write that the hardware can not support hubs, but why does hub works with our custom board and BF526 EZ-BRD board?

QuoteReplyEditDelete

 

 

2010-01-25 11:03:21     Re: USB hub connection issues with BF526C

Robin Getz (UNITED STATES)

Message: 85095   

 

Sergei:

 

the BF527 can not support a hub as a host. As a device - you can plug the BF527 into a hub.

 

-Robin

QuoteReplyEditDelete

 

 

2010-01-26 07:41:37     Re: USB hub connection issues with BF526C

Ivan Kuten (BELARUS)

Message: 85163   

 

Hello Robin, Mike

 

I see contradiction with your words and what we are seeing in reality.

 

We have:

 

a) BF526-EZBRD <-> Mini USB A cable -> Dlink DUB-104 USB Hub -> port1: USB stick, port2: USB WiFi dongle

 

Setup a) is working - you claim that it should not.

 

b) Custom BF526C <-> on-board USB hub SMSC USB2512 -> port1: USB stick

 

Setup b) is working too

 

 

 

Best regards,

 

Ivan

QuoteReplyEditDelete

 

 

2010-01-26 08:26:40     Re: USB hub connection issues with BF526C

Michael Hennerich (GERMANY)

Message: 85164    If you disable the blacklist external HUBs option.

You may see that a HUB is connected

 

root:/> PHY: 0:01 - Link is Up - 100/Full

usb 1-1: new full speed USB device using musb_hdrc and address 2

usb 1-1: configuration #1 chosen from 1 choice

hub 1-1:1.0: USB hub found

hub 1-1:1.0: 4 ports detected

 

I may also show you that a device is connected to PortX

 

usb 1-1.3: new full speed USB device using musb_hdrc and address 3

usb 1-1.3: not running at top speed; connect to a high speed hub

usb 1-1.3: configuration #1 chosen from 1 choice

scsi0 : SCSI emulation for USB Mass Storage devices

scsi 0:0:0:0: Direct-Access 4.00 PQ: 0 ANSI: 2

sd 0:0:0:0: [sda] 511231 512-byte logical blocks: (261 MB/249 MiB)

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

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] Attached SCSI removable disk

 

However I doubt that when another device gets connected both work simultaneously.

Did you try - or have you just watched the usb messages?

 

-Michael

QuoteReplyEditDelete

 

 

2010-02-01 05:58:45     Re: USB hub connection issues with BF526C

Ivan Kuten (BELARUS)

Message: 85414   

 

Michael,

 

You're right. USB enumeration does not mean that both plugged devices will work simultaneously

QuoteReplyEditDelete

 

 

2010-03-05 10:46:38     Re: USB hub connection issues with BF526C

Axel Alatalo (SWEDEN)

Message: 86875   

 

What you say sounds resonable, but as I understand the HW-Ref it says that hubs are forbidden even with the bfin working in slave mode. Is this a typo in the HW-ref or am I missing something?

 

Page: 26-12 of BF52x HRM v0.3 states:

 

The USB OTG interface may operate in peripheral mode or host mode.

When the USB controller is operating in peripheral mode, the controller

may be attached to a conventional host (such as a personal computer) or

another OTG device operating in host mode. The second device can be

high-speed, full-speed, or low-speed, but the second device cannot be a

hub.

 

-Axel

QuoteReplyEditDelete

 

 

2010-03-08 09:37:06     Re: USB hub connection issues with BF526C

Eric Lenington (UNITED STATES)

Message: 86951   

 

Anyone have any thoughts on external USB hub chips for the BF82x?

QuoteReplyEditDelete

 

 

2010-03-08 10:54:10     Re: USB hub connection issues with BF526C

Mike Frysinger (UNITED STATES)

Message: 86957   

 

there is no "BF82x" part.  in general though, people have hooked up a bunch of different USB parts to the async bus on different Blackfins and had them work fine.

Attachments

    Outcomes