firmware loader: introduce cache_firmware and uncache_firmware
authorMing Lei <ming.lei@canonical.com>
Sat, 4 Aug 2012 04:01:22 +0000 (12:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 20:24:21 +0000 (13:24 -0700)
commit2887b3959c8b2f6ed1f62ce95c0888aedb1ea84b
treed8706698f44593c7c0075912c6e2a4b81ebf32a6
parent1f2b79599ee8f5fc82cc73c6c090eb6cdff881d6
firmware loader: introduce cache_firmware and uncache_firmware

This patches introduce two kernel APIs of cache_firmware and
uncache_firmware, both of which take the firmware file name
as the only parameter.

So any drivers can call cache_firmware to cache the specified
firmware file into kernel memory, and can use the cached firmware
in situations which can't request firmware from user space.

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>
drivers/base/firmware_class.c
include/linux/firmware.h