Takashi Iwai bba3a87e98 firmware: Introduce request_firmware_direct()
When CONFIG_FW_LOADER_USER_HELPER is set, request_firmware() falls
back to the usermode helper for loading via udev when the direct
loading fails.  But the recent udev takes way too long timeout (60
seconds) for non-existing firmware.  This is unacceptable for the
drivers like microcode loader where they load firmwares optionally,
i.e. it's no error even if no requested file exists.

This patch provides a new helper function, request_firmware_direct().
It behaves as same as request_firmware() except for that it doesn't
fall back to usermode helper but returns an error immediately if the
f/w can't be loaded directly in kernel.

Without CONFIG_FW_LOADER_USER_HELPER=y, request_firmware_direct() is
just an alias of request_firmware(), due to obvious reason.

Tested-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Ming Lei <ming.lei@canonical.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-08 18:22:32 -08:00
..
2013-11-27 01:03:27 +01:00
2013-11-27 13:55:16 -05:00
2013-11-19 15:53:02 -05:00
2013-10-29 12:53:07 +02:00
2013-11-27 01:03:43 +01:00
2013-11-07 19:24:20 +01:00
2013-11-28 09:57:46 -08:00
2013-11-27 01:03:27 +01:00
2013-11-19 01:06:28 +01:00
2013-11-15 14:05:15 -08:00
2013-11-18 15:35:09 -08:00