diff options
author | Stefan Herbrechtsmeier <sherbrec@cit-ec.uni-bielefeld.de> | 2011-10-17 17:22:49 +0200 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-12-11 14:42:00 +0100 |
commit | 241d9a61b3c073aec7632af1333631ab61455cc4 (patch) | |
tree | 082272b335b74f683e10f6f7f9900546f963be58 /drivers/serial | |
parent | bdbcdc897f9e854ca8a4701418dec048ef376431 (diff) | |
download | u-boot-imx-241d9a61b3c073aec7632af1333631ab61455cc4.zip u-boot-imx-241d9a61b3c073aec7632af1333631ab61455cc4.tar.gz u-boot-imx-241d9a61b3c073aec7632af1333631ab61455cc4.tar.bz2 |
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 <sherbrec@cit-ec.uni-bielefeld.de>
CC: Marek Vasut <marek.vasut@gmail.com>
CC: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/usbtty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index cffd5a2..e2e87fe 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)); |