diff options
| author | Ming Lei <[email protected]> | 2012-08-20 11:04:16 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-09-06 21:46:16 +0000 |
| commit | ac39b3ea73aacde876d1d5ee1ca3e2719f771482 (patch) | |
| tree | 58b9ee67654ea41ddba770f827d7f949ee1d40f2 /lib/dynamic_debug.c | |
| parent | firmware loader: fix firmware -ENOENT situations (diff) | |
| download | kernel-ac39b3ea73aacde876d1d5ee1ca3e2719f771482.tar.gz kernel-ac39b3ea73aacde876d1d5ee1ca3e2719f771482.zip | |
firmware loader: let caching firmware piggyback on loading firmware
After starting caching firmware, there is still some time left
before devices are suspended, during the period, request_firmware
or its nowait version may still be triggered by the below situations
to load firmware images which can't be cached during suspend/resume
cycle.
- new devices added
- driver bind
- or device open kind of things
This patch utilizes the piggyback trick to cache firmware for
this kind of situation: just increase the firmware buf's reference
count and add the fw name entry into cache entry list after starting
caching firmware and before syscore_suspend() is called.
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
