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 ?
 
					
				
		
 igorpadykov
		
			igorpadykov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi nad
L3.10.17 is very old kernel, may be recommended to try latest 4.x nxp official releases described on
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!
-----------------------------------------------------------------------------------------------------------------------
