From 6534d006919015026cea46a8a1c06e7ecbcc5a02 Mon Sep 17 00:00:00 2001
From: Tomasz Wostowski <tomasz.wlostowski@cern.ch>
Date: Thu, 20 Sep 2012 11:10:59 +0200
Subject: [PATCH] kernel/wr-nic-core.c: sleep a while after LM32 starts

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
---
 kernel/wr-nic-core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/wr-nic-core.c b/kernel/wr-nic-core.c
index cde15f4..b4b92aa 100644
--- a/kernel/wr-nic-core.c
+++ b/kernel/wr-nic-core.c
@@ -11,6 +11,7 @@
 #include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/firmware.h>
+#include <linux/delay.h>
 #include <linux/fmc.h>
 #include <linux/fmc-sdb.h>
 #include "spec-nic.h"
@@ -127,6 +128,8 @@ int wrn_fmc_probe(struct fmc_device *fmc)
 			dev_info(dev, "WRC program reloaded from \"%s\"\n",
 				 wrn_wrc_filename);
 	}
+	/* After the LM32 started, give it time to set up */
+	msleep(200);
 
 	/* Register the gpio stuff,  if we have kernel support */
 	ret = wrn_gpio_init(fmc);
-- 
GitLab