mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
firmware: add firmware_request_cache() to help with cache on reboot
Some devices have an optimization in place to enable the firmware to be retaineed during a system reboot, so after reboot the device can skip requesting and loading the firmware. This can save up to 1s in load time. The mt7601u 802.11 device happens to be such a device. When these devices retain the firmware on a reboot and then suspend they can miss looking for the firmware on resume. To help with this we need a way to cache the firmware when such an optimization has taken place. Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c6263a4845
commit
5d42c96e1c
3 changed files with 41 additions and 0 deletions
|
@ -85,4 +85,7 @@ static inline int request_firmware_into_buf(const struct firmware **firmware_p,
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
int firmware_request_cache(struct device *device, const char *name);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue