aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-04-19 00:57:31 -0400
committerGreg KH <greg@press.kroah.org>2005-04-19 00:57:31 -0400
commit6897089c5f7989603ccb9c696050470ba1dbd262 (patch)
tree858c77a9aefc2f7b7b2c310b07e243d19a78e148 /drivers/base
parent6f31e42221c7deae4527136ce0dd73990d8bc1d1 (diff)
[PATCH] add TIMEOUT to firmware_class hotplug event
On Tue, 2005-03-15 at 09:25 +0100, Hannes Reinecke wrote: > The current implementation of the firmware class breaks a fundamental > assumption in udevd: that the physical device can be initialised fully > prior to executing the next event for that device. Here we add a TIMEOUT value to the hotplug environment of the firmware requesting event. I will adapt udevd not to wait for anything else, if it finds a TIMEOUT key. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/firmware_class.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 26c9464af80a..97fe13f7f07c 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -102,6 +102,9 @@ firmware_class_hotplug(struct class_device *class_dev, char **envp,
102 if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len, 102 if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len,
103 "FIRMWARE=%s", fw_priv->fw_id)) 103 "FIRMWARE=%s", fw_priv->fw_id))
104 return -ENOMEM; 104 return -ENOMEM;
105 if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len,
106 "TIMEOUT=%i", loading_timeout))
107 return -ENOMEM;
105 108
106 envp[i] = NULL; 109 envp[i] = NULL;
107 110