summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Zhu <Richard.Zhu@freescale.com>2015-05-15 14:22:03 +0800
committerRichard Zhu <Richard.Zhu@freescale.com>2015-05-18 09:58:22 +0800
commit1046f1eb20979cdd874d99601ee889ddf26caf51 (patch)
treee7461bfcf9c8a544a2ef1013cbcf83c6b6067070
parent098900a86bc4eeac59fce25473daaed21999b6a6 (diff)
MLK-10894 pci: imx: Error message and kernel dump happens after resume
phenomena: There is no such kind of phenomen when the "no_consol_suspend" is added into kernel cmd line. But there maybe kernel dump when the "no_consol_suspend" is removed from kernel cmd line. Root cause: After the RC resume back and link is up, delay for a while is required to let ep to resume from D3 mode Regarding to RM DOC, no status bit can be used to make a check on it, thus a while delay had been added. Test results: Over weekend stress tests are passed. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
-rw-r--r--drivers/pci/host/pci-imx6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index 62d20f85fe8e..03e8aa3ea15b 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -1203,6 +1203,8 @@ static int pci_imx_resume_noirq(struct device *dev)
ret = imx6_pcie_wait_for_link(pp);
if (ret < 0)
pr_info("pcie link is down after resume back.\n");
+ /* Delay for a while, give ep some times to resume from D3 */
+ udelay(200);
} else {
/*
* L2 can exit by 'reset' or Inband beacon (from remote EP)