[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070412202519.GB14705@aitel.hist.no>
Date: Thu, 12 Apr 2007 22:25:19 +0200
From: Helge Hafting <helgehaf@...el.hist.no>
To: Jiri Kosina <jikos@...os.cz>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-usb-devel@...ts.sourceforge.net
Subject: Re: 2.6.21-rc6-mm1 USB related boot hang
On Thu, Apr 12, 2007 at 08:32:50PM +0200, Jiri Kosina wrote:
> OK, so it hangs somewhere nearby usbhid's hid_init(), and the
> usb_register() has been already invoked. Could you please apply the
> superstupid patch below and send me the output up to the point it hangs? I
> am curious to know whether it hangs somewhere inside usb_register(), or
> elsewhere.
>
> Thanks.
>
Are you sure this is the correct patch - against 2.6.21-rc6-mm1 ?
Hunk 1 out of 1 failed . . .
> diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
> index 1ddca31..d930f62 100644
> --- a/drivers/hid/usbhid/hid-core.c
> +++ b/drivers/hid/usbhid/hid-core.c
> @@ -1550,15 +1550,22 @@ static int __init hid_init(void)
> retval = hiddev_init();
> if (retval)
> goto hiddev_init_fail;
> + printk(KERN_DEBUG "hid_init: before usb_register()\n");
> retval = usb_register(&hid_driver);
> + printk(KERN_DEBUG "hid_init: after usb_register(), retuned %d\n", retval);
> if (retval)
> goto usb_register_fail;
> info(DRIVER_VERSION ":" DRIVER_DESC);
>
> + printk(KERN_DEBUG "hid_init: returning 0\n");
> + dump_stack();
> return 0;
> usb_register_fail:
> + printk(KERN_DEBUG "hid_init: calling hiddev_exit()\n");
> hiddev_exit();
> hiddev_init_fail:
> + printk(KERN_DEBUG "hid_init: returning %d\n", retval);
> + dump_stack();
> return retval;
> }
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists