/* Wait until HC become operational */
        ehci_readl(ehci, &ehci->regs->command); /* unblock posted writes */
        msleep(5);
-       rc = ehci_handshake(ehci, &ehci->regs->status, STS_HALT, 0, 100 * 1000);
+
+       /* For Aspeed, STS_HALT also depends on ASS/PSS status.
+        * Check CMD_RUN instead.
+        */
+       if (ehci->is_aspeed)
+               rc = ehci_handshake(ehci, &ehci->regs->command, CMD_RUN,
+                                   1, 100 * 1000);
+       else
+               rc = ehci_handshake(ehci, &ehci->regs->status, STS_HALT,
+                                   0, 100 * 1000);
 
        up_write(&ehci_cf_port_reset_rwsem);
 
 
                                          "has-transaction-translator"))
                        hcd->has_tt = 1;
 
+               if (of_device_is_compatible(dev->dev.of_node,
+                                           "aspeed,ast2500-ehci") ||
+                   of_device_is_compatible(dev->dev.of_node,
+                                           "aspeed,ast2600-ehci"))
+                       ehci->is_aspeed = 1;
+
                if (soc_device_match(quirk_poll_match))
                        priv->quirk_poll = true;
 
 
        unsigned                need_oc_pp_cycle:1; /* MPC834X port power */
        unsigned                imx28_write_fix:1; /* For Freescale i.MX28 */
        unsigned                spurious_oc:1;
+       unsigned                is_aspeed:1;
 
        /* required for usb32 quirk */
        #define OHCI_CTRL_HCFS          (3 << 6)