[PATCH] ARM: imx6: Fix "BUG: scheduling while atomic" if PCIe switch is attached

David Müller dave.mueller at gmx.ch
Thu Jun 18 00:56:54 PDT 2015


This problem has already been reported as 
https://bugzilla.kernel.org/show_bug.cgi?id=100031

Signed-off-by: David Müller <dave.mueller at gmx.ch>
---
 drivers/pci/host/pci-imx6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index fdb9536..c63691c 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -489,7 +489,7 @@ static int imx6_pcie_link_up(struct pcie_port *pp)
 		 * Wait a little bit, then re-check if the link finished
 		 * the training.
 		 */
-		usleep_range(1000, 2000);
+		mdelay(20);
 	}
 	/*
 	 * From L0, initiate MAC entry to gen2 if EP/RC supports gen2.
-- 
1.8.4




More information about the linux-arm-kernel mailing list