* [PATCH] Fix error reporting on missing firmware files
@ 2010-01-31 12:49 Thomas Bächler
2010-01-31 22:59 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bächler @ 2010-01-31 12:49 UTC (permalink / raw)
To: linux-hotplug
The new firmware loader does not report an error to the kernel if a firmware file
is missing. This results in modprobe stalling for 60 seconds for each firmware
a module tries to load.
---
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
--git a/extras/firmware/firmware.c b/extras/firmware/firmware.c
index 8f70be4..16455de 100644
--- a/extras/firmware/firmware.c
+++ b/extras/firmware/firmware.c
@@ -149,6 +149,7 @@ int main(int argc, char **argv)
util_path_encode(firmware, fwencpath, sizeof(fwencpath));
util_strscpyl(misspath, sizeof(misspath), udev_get_dev_path(udev), "/.udev/firmware-missing/", fwencpath, NULL);
+ util_strscpyl(loadpath, sizeof(loadpath), udev_get_sys_path(udev), devpath, "/loading", NULL);
if (fwfile = NULL) {
int err;
@@ -166,6 +167,7 @@ int main(int argc, char **argv)
udev_selinux_resetfscreatecon(udev);
} while (err = -ENOENT);
rc = 2;
+ set_loading(udev, loadpath, "-1");
goto exit;
}
@@ -176,7 +178,6 @@ int main(int argc, char **argv)
if (unlink(misspath) = 0)
util_delete_path(udev, misspath);
- util_strscpyl(loadpath, sizeof(loadpath), udev_get_sys_path(udev), devpath, "/loading", NULL);
set_loading(udev, loadpath, "1");
util_strscpyl(datapath, sizeof(datapath), udev_get_sys_path(udev), devpath, "/data", NULL);
--
1.6.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix error reporting on missing firmware files
2010-01-31 12:49 [PATCH] Fix error reporting on missing firmware files Thomas Bächler
@ 2010-01-31 22:59 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2010-01-31 22:59 UTC (permalink / raw)
To: linux-hotplug
On Sun, Jan 31, 2010 at 13:49, Thomas Bächler <thomas@archlinux.org> wrote:
> The new firmware loader does not report an error to the kernel if a firmware file
> is missing. This results in modprobe stalling for 60 seconds for each firmware
> a module tries to load.
Applied.
Thanks,
Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-31 22:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-31 12:49 [PATCH] Fix error reporting on missing firmware files Thomas Bächler
2010-01-31 22:59 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).