Re: OOPS: musb_am335x: __device_attach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was able to use some gdb to touch the issue:

(gdb) monitor lsmod
Module                  Size  modstruct     Used by
musb_am335x             1431  0xbf000278    1  (Loading) 0xbf000000 [ ]
(gdb) bt
#0  0x73256020 in ?? ()
#1  0xc07a68f8 in driver_match_device (dev=<optimized out>, drv=<optimized out>) at ../drivers/base/base.h:117
#2  __device_attach (drv=0xc0ed5708 <spear13xx_pcie_driver+20>, data=0xdb624210) at ../drivers/base/dd.c:409
#3  0xc07a4920 in bus_for_each_drv (bus=<optimized out>, start=<optimized out>, data=0xda0, fn=0xc07a68c8 <__device_attach>)
    at ../drivers/base/bus.c:463
#4  0xc07a64ac in device_attach (dev=0xdb624210) at ../drivers/base/dd.c:447
#5  0xc07a599c in bus_probe_device (dev=0xdb624210) at ../drivers/base/bus.c:558
#6  0xc07a3a60 in device_add (dev=<optimized out>) at ../drivers/base/core.c:1058
#7  0xc08b6c0c in of_device_add (ofdev=<optimized out>) at ../drivers/of/device.c:66
#8  0xc08b75dc in of_platform_device_create_pdata (np=<optimized out>, bus_id=0x0 <__vectors_start>, platform_data=0x0 <__vectors_start>,
    parent=<optimized out>) at ../drivers/of/platform.c:241
#9  0xc08b7718 in of_platform_bus_create (bus=0xdfa46780, matches=0x0 <__vectors_start>, lookup=0x0 <__vectors_start>, parent=0xdb183410,
    strict=true) at ../drivers/of/platform.c:414
#10 0xc08b7b6c in of_platform_populate (root=0xdb624210, matches=0xc0ed5708 <spear13xx_pcie_driver+20>, lookup=0xda0,
    parent=0xc07a68c8 <__device_attach>) at ../drivers/of/platform.c:501
#11 0xbf000030 in am335x_child_probe (pdev=0xdb183400) at ../drivers/usb/musb/musb_am335x.c:12
#12 0xc07a8578 in platform_drv_probe (_dev=0xdb183410) at ../drivers/base/platform.c:512
#13 0xc07a6670 in really_probe (drv=<optimized out>, dev=<optimized out>) at ../drivers/base/dd.c:302
#14 driver_probe_device (drv=0xbf000234, dev=0xdb183410) at ../drivers/base/dd.c:399
#15 0xc07a69a8 in __driver_attach (dev=0xdb183410, data=0xbf000234) at ../drivers/base/dd.c:477
#16 0xc07a4870 in bus_for_each_dev (bus=<optimized out>, start=<optimized out>, data=0xda0, fn=0xc07a852c <platform_drv_probe>)
    at ../drivers/base/bus.c:313
#17 0xc07a6044 in driver_attach (drv=<optimized out>) at ../drivers/base/dd.c:496
#18 0xc07a5c78 in bus_add_driver (drv=0xbf000234) at ../drivers/base/bus.c:694
#19 0xc07a7174 in driver_register (drv=0xbf000234) at ../drivers/base/driver.c:167
#20 0xc0209c34 in do_one_initcall (fn=0xbf002000) at ../init/main.c:801
#21 0xc02e0494 in do_init_module (mod=<optimized out>) at ../kernel/module.c:3142
#22 load_module (info=0xdb6adf54, uargs=<optimized out>, flags=<optimized out>) at ../kernel/module.c:3461
#23 0xc02e0a44 in SYSC_finit_module (flags=<optimized out>, uargs=<optimized out>, fd=<optimized out>) at ../kernel/module.c:3537
#24 SyS_finit_module (fd=7, uargs=-1226138708, flags=0) at ../kernel/module.c:3518
#25 0xc021a680 in ?? ()

Here some strange stuff. And I have no idea what is spear13xx_pcie_driver.

(gdb) frame 11
#11 0xbf000030 in am335x_child_probe (pdev=0xdb183400) at ../drivers/usb/musb/musb_am335x.c:12
12      ../drivers/usb/musb/musb_am335x.c: Нет такого файла или каталога.
(gdb) print pdev->dev.of_node
$8 = (struct device_node *) 0xdfa46574
(gdb) print &pdev->dev
$9 = (struct device *) 0xdb183410
(gdb) frame 10
#10 0xc08b7b6c in of_platform_populate (root=0xdb624210, matches=0xc0ed5708 <spear13xx_pcie_driver+20>, lookup=0xda0, 
    parent=0xc07a68c8 <__device_attach>) at ../drivers/of/platform.c:501
501     ../drivers/of/platform.c: Нет такого файла или каталога.
(gdb) print root
$10 = (struct device_node *) 0xdb624210
(gdb) print parent
$11 = (struct device *) 0xc07a68c8 <__device_attach>

Something wrong has happened between 10 and 11 frames.

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux