From: David S. Miller Date: Fri, 12 Mar 2010 08:00:17 +0000 (-0800) Subject: ipconfig: Handle devices which take some time to come up. X-Git-Tag: v2.6.34-rc2~48^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=964ad81cbd933e5fa310faeec1e923c14651284b;p=pandora-kernel.git ipconfig: Handle devices which take some time to come up. Some network devices, particularly USB ones, take several seconds to fully init and appear in the device list. If the user turned ipconfig on, they are using it for NFS root or some other early booting purpose. So it makes no sense to just flat out fail immediately if the device isn't found. It also doesn't make sense to just jack up the initial wait to something crazy like 10 seconds. Instead, poll immediately, and then periodically once a second, waiting for a usable device to appear. Fail after 12 seconds. Signed-off-by: David S. Miller Tested-by: Christian Pellegrin --- Reading git-diff-tree failed