]> Git Repo - linux.git/commit
firmware: Introduce request_firmware_direct()
authorTakashi Iwai <[email protected]>
Mon, 2 Dec 2013 14:38:16 +0000 (15:38 +0100)
committerGreg Kroah-Hartman <[email protected]>
Mon, 9 Dec 2013 02:22:32 +0000 (18:22 -0800)
commitbba3a87e982ad5992e776ca1fc409326915d6b44
tree9149b3090514f8715f6899401a4977d3e1dc0d0c
parent020d30f17f196dcbf0c2c68a874345e8885a3149
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 <[email protected]>
Acked-by: Ming Lei <[email protected]>
Acked-by: Borislav Petkov <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/base/firmware_class.c
include/linux/firmware.h
This page took 0.051956 seconds and 4 git commands to generate.