Message ID | 20110312090002.7b703e61@wker (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
On Sat, Mar 12, 2011 at 3:00 AM, Anatolij Gustschin <agust@denx.de> wrote: > > Can you please apply the attached patch, then build with your > linux.config and send me the kernel boot log? It will help to > fix the issue. > Actually, this kernel seems to work: ... Freescale PowerQUICC MII Bus: probed tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> fsl_usb2_mph_dr_of_probe Freescale High-Speed USB SOC Device Controller driver (Apr 20, 2007) fsl_udc_probe g_ether gadget: using random self ethernet address ... Oddly enough, the kernel I tried last week did the same thing (I hard-coded "obj-y += usb/host/" into drivers/Makefile), but I had a printk() at the top of fsl_udc_probe() that never got called. Oh, I see the difference now: you added the usb/host/ entry before usb/gadget/, while I added it afterward... I forgot that link order determines initialization order in the kernel. Anyway, seems to work fine. :) Thanks Antolij!
diff --git a/drivers/Makefile b/drivers/Makefile index f3ebb30..bf1ad90 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -67,6 +67,7 @@ obj-$(CONFIG_UWB) += uwb/ obj-$(CONFIG_USB_OTG_UTILS) += usb/otg/ obj-$(CONFIG_USB) += usb/ obj-$(CONFIG_USB_MUSB_HDRC) += usb/musb/ +obj-$(CONFIG_USB_FSL_MPH_DR_OF) += usb/host/ obj-$(CONFIG_PCI) += usb/ obj-$(CONFIG_USB_GADGET) += usb/gadget/ obj-$(CONFIG_SERIO) += input/serio/ diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index 4c55eda..a3ba374 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c @@ -2240,6 +2240,7 @@ static int __init fsl_udc_probe(struct platform_device *pdev) unsigned int i; u32 dccparams; + printk("%s\n", __func__); if (strcmp(pdev->name, driver_name)) { VDBG("Wrong device"); return -ENODEV; diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index 574b99e..b8b3070 100644 --- a/drivers/usb/host/fsl-mph-dr-of.c +++ b/drivers/usb/host/fsl-mph-dr-of.c @@ -130,6 +130,7 @@ static int __devinit fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev) static unsigned int idx; int i; + printk("%s\n", __func__); if (!of_device_is_available(np)) return -ENODEV;