diff options
author | Ming Lei <ming.lei@canonical.com> | 2012-08-04 12:01:21 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 13:22:45 -0700 |
commit | 1f2b79599ee8f5fc82cc73c6c090eb6cdff881d6 (patch) | |
tree | 6b3fed8d355f708cc6a001e772f07783a300d2cd /CREDITS | |
parent | 1244691c73b250be522e77ac1a00ad53b601b4c4 (diff) | |
download | linux-stable-1f2b79599ee8f5fc82cc73c6c090eb6cdff881d6.tar.gz linux-stable-1f2b79599ee8f5fc82cc73c6c090eb6cdff881d6.tar.bz2 linux-stable-1f2b79599ee8f5fc82cc73c6c090eb6cdff881d6.zip |
firmware loader: always let firmware_buf own the pages buffer
This patch always let firmware_buf own the pages buffer allocated
inside firmware_data_write, and add all instances of firmware_buf
into the firmware cache global list. Also introduce one private field
in 'struct firmware', so release_firmware will see the instance of
firmware_buf associated with the current firmware instance, then just
'free' the instance of firmware_buf.
The firmware_buf instance represents one pages buffer for one
firmware image, so lots of firmware loading requests can share
the same firmware_buf instance if they request the same firmware
image file.
This patch will make implementation of the following cache_firmware/
uncache_firmware very easy and simple.
In fact, the patch improves request_formware/release_firmware:
- only request userspace to write firmware image once if
several devices share one same firmware image and its drivers
call request_firmware concurrently.
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions