diff options
author | Ming Lei <ming.lei@canonical.com> | 2012-11-03 05:47:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-14 18:07:18 -0500 |
commit | 27602842060484b564cd725241b402b0bddfb830 (patch) | |
tree | 62bc5aa301675cde89a7543d169b38e62df1bcd3 /Documentation/firmware_class | |
parent | 60dac5e284fe99751e3beefe1a9cc7a0771ad73c (diff) |
firmware loader: introduce module parameter to customize(v4) fw search path
This patch introduces one module parameter of 'path' in firmware_class
to support customizing firmware image search path, so that people can
use its own firmware path if the default built-in paths can't meet their
demand[1], and the typical usage is passing the below from kernel command
parameter when 'firmware_class' is built in kernel:
firmware_class.path=$CUSTOMIZED_PATH
[1], https://lkml.org/lkml/2012/10/11/337
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/firmware_class')
-rw-r--r-- | Documentation/firmware_class/README | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/firmware_class/README b/Documentation/firmware_class/README index 815b711bcd85..e9fce78c4137 100644 --- a/Documentation/firmware_class/README +++ b/Documentation/firmware_class/README | |||
@@ -22,12 +22,17 @@ | |||
22 | - calls request_firmware(&fw_entry, $FIRMWARE, device) | 22 | - calls request_firmware(&fw_entry, $FIRMWARE, device) |
23 | - kernel searchs the fimware image with name $FIRMWARE directly | 23 | - kernel searchs the fimware image with name $FIRMWARE directly |
24 | in the below search path of root filesystem: | 24 | in the below search path of root filesystem: |
25 | User customized search path by module parameter 'path'[1] | ||
25 | "/lib/firmware/updates/" UTS_RELEASE, | 26 | "/lib/firmware/updates/" UTS_RELEASE, |
26 | "/lib/firmware/updates", | 27 | "/lib/firmware/updates", |
27 | "/lib/firmware/" UTS_RELEASE, | 28 | "/lib/firmware/" UTS_RELEASE, |
28 | "/lib/firmware" | 29 | "/lib/firmware" |
29 | - If found, goto 7), else goto 2) | 30 | - If found, goto 7), else goto 2) |
30 | 31 | ||
32 | [1], the 'path' is a string parameter which length should be less | ||
33 | than 256, user should pass 'firmware_class.path=$CUSTOMIZED_PATH' | ||
34 | if firmware_class is built in kernel(the general situation) | ||
35 | |||
31 | 2), userspace: | 36 | 2), userspace: |
32 | - /sys/class/firmware/xxx/{loading,data} appear. | 37 | - /sys/class/firmware/xxx/{loading,data} appear. |
33 | - hotplug gets called with a firmware identifier in $FIRMWARE | 38 | - hotplug gets called with a firmware identifier in $FIRMWARE |