]> git.baikalelectronics.ru Git - kernel.git/commit
mt7601u: use firmware_request_cache() to address cache on reboot
authorLuis R. Rodriguez <mcgrof@kernel.org>
Wed, 21 Mar 2018 22:34:30 +0000 (15:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 17:33:26 +0000 (18:33 +0100)
commit572fad031e56639f1322d1e43c0e4e37f8bc7470
tree65961eda00e3da5512067f376e283244fa079557
parentf43b0c21b3d700eadad63d7c4c0b25cbe9b40a15
mt7601u: use firmware_request_cache() to address cache on reboot

request_firmware_cache() will ensure the firmware is available on resume
from suspend if on reboot the device retains the firmware.

This optimization is in place given otherwise on reboot we have to
reload the firmware, the opmization saves us about max 1s, minimum 10ms.

Cantabile has reported back this fixes his woes with both suspend and
hibernation.

Reported-by: Cantabile <cantabile.desu@gmail.com>
Tested-by: Cantabile <cantabile.desu@gmail.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt7601u/mcu.c