Linux Crash on USB OTG Role Change

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux Crash on USB OTG Role Change

883 Views
erezsteinberg
Contributor IV

Hello experts,

On iMX6DL custom board with Linx 3.10.53, when I plug-in a 'disk-on-key' to the USB OTG port I get a Linux Crash.

When in 'client' mode, USB-OTG work fine.

But, switching to 'Host' mode causes the crash.

Any ideas what might be wrong?

Regards,

Erez

root@freescale ~$

root@freescale ~$

root@freescale ~$

Bus freq set to 24000000 start...

Bus freq set to 24000000 done! cpu=0

Bus freq set to 400000000 start...

Bus freq set to 400000000 done! cpu=0

Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP ARM

Modules linked in:

CPU: 0 PID: 72 Comm: kworker/0:2 Not tainted 3.10.53-gacd5d04-dirty #39

Workqueue: pm pm_runtime_work

task: 99fa0780 ti: 99f7c000 task.ti: 99f7c000

PC is at 0x80a7ce8c

LR is at __clk_speculate_rates+0x24/0x8c

pc : [<80a7ce8c>]    lr : [<804f1e9c>]    psr: a0000013

sp : 99f7dd80  ip : 801f180a  fp : 80048e2c

r10: 99f7c000  r9 : 00000000  r8 : 98016a80

r7 : 00000000  r6 : 98012400  r5 : 04c4b400  r4 : 9801f180

r3 : 80a7ce74  r2 : 00000001  r1 : 04c4b400  r0 : 98fbe4c0

Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

Control: 10c53c7d  Table: 244c004a  DAC: 00000015

Process kworker/0:2 (pid: 72, stack limit = 0x99f7c238)

Stack: (0x99f7dd80 to 0x99f7e000)

dd80: 00000000 9801f180 04c4b400 804f1ec8 8001d448 9801f100 09896800 804f1ec8

dda0: 00000000 98022800 1c9c3800 804f1ec8 00000000 9801af00 1c9c3800 804f1ec8

ddc0: 00000000 9801f000 1c9c3800 804f1ec8 00000004 98016a80 98012400 804f3048

dde0: 00000000 8099d7e4 8099c75c 98012400 98012f80 80024914 00000000 8099d7e4

de00: 00000000 8099d7e4 9811b410 00000000 99f7c000 800257c0 9811b410 99ed2710

de20: 80302304 803fc188 803fc2b8 9811b410 9811b470 80302304 00000000 80302330

de40: 00000000 80305dc8 9811b410 809460c0 9811b010 80305e1c 9811b410 809460c0

de60: 9811b010 80306c40 99f7de8c 8069a6a4 00000000 8005067c 8094f5c8 80942c40

de80: 8094f5c8 99fc1810 99fc1870 9811b410 9811b470 00000002 00000000 99f7c000

dea0: 80478e2c 80e16b04 9994c000 80e1a65c 80e1f5c8 80e1d428 80f72c40 80032c40

dec0: 00000000 99fc18b4 99fc1870 80e1c840 99f7c000 80e1ff00 00000000 00000000

dee0: 80e1c840 8030752c 803074cc 99f49680 99fc18b4 8004263c 00000001 99f49680

df00: 99f49698 99f49698 99f7c000 99f49680 80e1c854 99f49698 99f7c000 99f7c000

df20: 8099c085 00000001 80e1c840 800429f8 800428c0 00000000 00000000 99f7c000

df40: 99f7df64 98089e98 00000000 99f49680 800428c0 00000000 00000000 00000000

df60: 00000000 800484d4 00001020 00000000 00000000 99f49680 00000000 00000000

df80: 99f7df80 99f7df80 00000000 00000000 99f7df90 99f7df90 99f7dfac 98089e98

dfa0: 80048430 00000000 00000000 8000e2d8 00000000 00000000 00000000 00000000

dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000002 20000020

[<804f1e9c>] (__clk_speculate_rates+0x24/0x8c) from [<804f1ec8>] (__clk_speculate_rates+0x50/0x8c)

Code: 00000000 00000000 00000000 00000000 (ffffffff)

---[ end trace b4d18dcdfafcde4b ]---

Labels (2)
Tags (1)
0 Kudos
1 Reply

429 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Erez,

Have you ensured that your custom board has the proper hardware for USB OTG support on Host mode (specially, the ID pin). On the “Hardware Development Guide for i.MX 6Quad, 6Dual, 6DualLite, 6Solo Families of Applications Processo...”, you could find useful information.


Hope this will be useful for you.
Best regards!
/Carlos

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

0 Kudos