On Tue, Jul 14, 2009 at 11:05:58AM +0200, javier Martin wrote: > 2009/7/14 Daniel Mack <daniel@xxxxxxxx>: > > On Tue, Jul 14, 2009 at 09:38:53AM +0200, javier Martin wrote: > >> Well, I am using gdb for debugging the kernel through JTAG, > >> it currently crashes in function "static int __init ehci_hcd_init(void)" > >> when executing line "retval = platform_driver_register(&PLATFORM_DRIVER);". > > > > The platform_driver's probe function is also called. Set a breakpoint at > > ehci_mxc_drv_probe(), the real crash must be there or in one the > > functions called. > > > > Daniel > > > > > Yeah, you are right, the hierarchy is as follows: > > ehci_mxc_setup() -> ehci_reset() -> ehci_hub_control() > > In "ehci_hub_control" it crashes in the following "ehci_readl": > > case USB_PORT_FEAT_POWER: > if (HCS_PPC (ehci->hcs_params)) > ehci_writel(ehci, > temp & ~(PORT_RWC_BITS | PORT_POWER), > status_reg); > break; > > Where "status_reg" is 0xc4846184, it seems this is a wrong value > because base address of USB in i.mx27 is 0x10024000. > What do you think? 0xc4846184 is the kernel virtual address, not the physical address. The value seems sane. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- 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