Firmware default loading timeout is set to 60 seconds by a Fedora
patch (it's 10 seconds in the stock kernel.) Somehow, by the time
I've finished booting it's back to 10 seconds. Does anyone have an
idea why? I came up with this patch to make the minimum 60 seconds,
still allowing 0 for "no timeout."

--- linux-2.6.20.noarch/drivers/base/firmware_class.c.orig      2007-03-26 
14:20:38.000000000 -0400
+++ linux-2.6.20.noarch/drivers/base/firmware_class.c   2007-03-26 
18:10:09.000000000 -0400
@@ -81,8 +81,15 @@
 firmware_timeout_store(struct class *class, const char *buf, size_t count)
 {
        loading_timeout = simple_strtol(buf, NULL, 10);
-       if (loading_timeout < 0)
+       if (loading_timeout <= 0)
                loading_timeout = 0;
+       else if (loading_timeout < 60) {
+               if (printk_ratelimit)
+                       printk(KERN_INFO
+                              "firmware_class: attempt to set timeout to %d\n",
+                              loading_timeout);
+               loading_timeout = 60;
+       }
        return count;
 }
 
_______________________________________________
Fedora-kernel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

Reply via email to