USB Overcurrent Detection failed when USB has been initialized from u-boot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB Overcurrent Detection failed when USB has been initialized from u-boot

1,934件の閲覧回数
nad
Contributor III

Hi,

I am working on a i.MX6 custom board running linux version 3.10.17.

The USB OTG works fine both in host and gadget mode and overcurrent events are reported as expected by the kernel.

    root@mx6board:~# echo host > /sys/kernel/debug/ci_hdrc.0/role
    root@mx6board:~# cat /sys/class/regulator/regulator.7/state
    enabled
    => Trigger overcurrent

    kernel: hub 2-0:1.0: hub_resume
    kernel: hub 2-0:1.0: over-current condition on port 1
    root@mx6board:~# cat /sys/class/regulator/regulator.7/state
    disabled

However, when initiating USB from u-boot using 'usb start', overcurrent events are no longer reported by the kernel.

    mx6board> usb start;
    mx6board> boot
    ...
    root@mx6board:~# echo host > /sys/kernel/debug/ci_hdrc.0/role
    root@mx6board:~# cat /sys/class/regulator/regulator.7/state
    enabled
    => Trigger overcurrent
    root@mx6board:~# cat /sys/class/regulator/regulator.7/state
    enabled

Someone may give advices ?

ラベル(1)
0 件の賞賛
返信
1 返信

1,442件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi nad

L3.10.17 is very old kernel, may be recommended to try latest 4.x nxp official releases described on

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

For 3.10.17 one can dump usb module registers in both cases and try to debug it using

Chapter 41 CHIPIDEA USB Driver attached Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信