Something is changing the firmware loading timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Fedora-kernel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux