diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-12 04:17:48 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-12 04:17:48 +0100 |
commit | c86be870ce6bb6361ca2ca6c3c05b6d89cf70a2c (patch) | |
tree | 9c5fe406524e8ab94bda594e58b8bed75fce2b9c /udev_rules.c | |
parent | e24b218ad7ab05f92c6ca93ddc7e62f918094a46 (diff) |
remove all built-in wait_for_sysfs logic
Most of the issues are fixed with the kernel we depend on, for the
remaing ones see the RELEASE-NOTES for a special rule to add.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules.c')
-rw-r--r-- | udev_rules.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/udev_rules.c b/udev_rules.c index 137ad27dba..a3100f8e14 100644 --- a/udev_rules.c +++ b/udev_rules.c @@ -376,7 +376,7 @@ attr_found: return 0; } -#define WAIT_LOOP_PER_SECOND 20 +#define WAIT_LOOP_PER_SECOND 50 static int wait_for_sysfs(struct udevice *udev, const char *file, int timeout) { char filename[PATH_SIZE]; @@ -392,9 +392,10 @@ static int wait_for_sysfs(struct udevice *udev, const char *file, int timeout) info("file appeared after %i loops", (timeout * WAIT_LOOP_PER_SECOND) - loop-1); return 0; } + info("wait for %i mseconds", 1000 / WAIT_LOOP_PER_SECOND); usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND); } - info("waiting for '%s' failed", filename); + err("waiting for '%s' failed", filename); return -1; } |