]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
USB: Add config option to call ehci_hcd_init() again after EHCI reset
authorStefan Roese <sr@denx.de>
Wed, 21 Jan 2009 16:12:10 +0000 (17:12 +0100)
committerRemy Bohmer <linux@bohmer.net>
Wed, 28 Jan 2009 18:57:31 +0000 (19:57 +0100)
This patch adds the config option CONFIG_EHCI_HCD_INIT_AFTER_RESET
to call ehci_hcd_init() again after ehci_reset() is executed. This
is needed for the upcoming VCT EHCI support which needs to re-init
the hcd part again after the EHCI CMD_RESET is executed.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
drivers/usb/usb_ehci_core.c

index 28962fa0267077dc74ac6bb07cb2c548f3138766..2f38f3388011fdec62c1acf37b50eb0bd94870be 100644 (file)
@@ -691,6 +691,11 @@ int usb_lowlevel_init(void)
        if (ehci_reset() != 0)
                return -1;
 
+#if defined(CONFIG_EHCI_HCD_INIT_AFTER_RESET)
+       if (ehci_hcd_init() != 0)
+               return -1;
+#endif
+
        /* Set head of reclaim list */
        memset(&qh_list, 0, sizeof(qh_list));
        qh_list.qh_link = cpu_to_hc32((uint32_t)&qh_list | QH_LINK_TYPE_QH);