]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usbtty: init endpoints prior to startup events
authorStefan Herbrechtsmeier <sherbrec@cit-ec.uni-bielefeld.de>
Mon, 17 Oct 2011 15:22:49 +0000 (17:22 +0200)
committerRemy Bohmer <linux@bohmer.net>
Sun, 11 Dec 2011 13:42:00 +0000 (14:42 +0100)
On some usb device controllers (pxa) the endpoint configuration must be programmed prior to enable it.

Signed-off-by: Stefan Herbrechtsmeier <sherbrec@cit-ec.uni-bielefeld.de>
CC: Marek Vasut <marek.vasut@gmail.com>
CC: Remy Bohmer <linux@bohmer.net>
drivers/serial/usbtty.c

index cffd5a2b25259d5018274b7144dec6ed40c34acc..e2e87fef6936619eaeecac0abc256467cf1b6b6d 100644 (file)
@@ -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));