From 241d9a61b3c073aec7632af1333631ab61455cc4 Mon Sep 17 00:00:00 2001 From: Stefan Herbrechtsmeier Date: Mon, 17 Oct 2011 17:22:49 +0200 Subject: [PATCH] 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 --- drivers/serial/usbtty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.39.5