@@ -181,6 +181,7 @@ static int tdi_in_host_mode (struct ehci_hcd *ehci)
static int ehci_halt (struct ehci_hcd *ehci)
{
u32 temp;
+ struct pci_dev *pci_dev = to_pci_dev(ehci_to_hcd(ehci)->self.controller);
spin_lock_irq(&ehci->lock);
@@ -204,8 +205,14 @@ static int ehci_halt (struct ehci_hcd *ehci)
spin_unlock_irq(&ehci->lock);
synchronize_irq(ehci_to_hcd(ehci)->irq);
- return ehci_handshake(ehci, &ehci->regs->status,
- STS_HALT, STS_HALT, 16 * 125);
+ if (((pci_dev->vendor == PCI_VENDOR_ID_ZHAOXIN) &&
+ (pci_dev->device == 0x3104) &&
+ ((pci_dev->revision & 0xf0) == 0x90)))
+ return ehci_handshake(ehci, &ehci->regs->command, CMD_RUN,
+ 0, 16 * 125);
+ else
+ return ehci_handshake(ehci, &ehci->regs->status, STS_HALT,
+ STS_HALT, 16 * 125);
}
/* put TDI/ARC silicon into EHCI mode */