From: Stefan Herbrechtsmeier Date: Mon, 17 Oct 2011 15:22:49 +0000 (+0200) Subject: usbtty: init endpoints prior to startup events X-Git-Tag: v2011.12-rc1~9^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=241d9a61b3c073aec7632af1333631ab61455cc4;p=u-boot usbtty: init endpoints prior to startup events On some usb device controllers (pxa) the endpoint configuration must be programmed prior to enable it. Signed-off-by: Stefan Herbrechtsmeier CC: Marek Vasut CC: Remy Bohmer --- diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index cffd5a2b25..e2e87fef69 100644 --- a/drivers/serial/usbtty.c +++ b/drivers/serial/usbtty.c @@ -554,11 +554,11 @@ int drv_usbtty_init (void) usbtty_init_strings (); usbtty_init_instances (); + usbtty_init_endpoints (); + udc_startup_events (device_instance);/* Enable dev, init udc pointers */ udc_connect (); /* Enable pullup for host detection */ - usbtty_init_endpoints (); - /* Device initialization */ memset (&usbttydev, 0, sizeof (usbttydev));