firmware loader: cache devices firmware during suspend/resume cycle
authorMing Lei <ming.lei@canonical.com>
Sat, 4 Aug 2012 04:01:29 +0000 (12:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 20:44:44 +0000 (13:44 -0700)
commit07646d9c0938d40b943c592dd1c6435ab24c4e2f
tree1b86d489f25f22d60dc29467c4b8aae727dbc72d
parentffe53f6f388a3aaa208e7c45065ce096d5d2f4e9
firmware loader: cache devices firmware during suspend/resume cycle

This patch implements caching devices' firmware automatically
during system syspend/resume cycle, so any device drivers can
call request_firmware or request_firmware_nowait inside resume
path to get the cached firmware if they have loaded firmwares
successfully at least once before entering suspend.

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