]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: add sanity check on shutdown/suspend
authorLuis R. Rodriguez <mcgrof@kernel.org>
Tue, 2 May 2017 08:31:05 +0000 (01:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 10:15:49 +0000 (19:15 +0900)
commit602dbf69ec08b1b91f1f2db5e34f12c897e85a2e
tree59cf64e1d454e740af39a4f397ee44c8f822b389
parentd88db17424ca7f9c329aff082266f77135321604
firmware: add sanity check on shutdown/suspend

The firmware API should not be used after we go to suspend
and after we reboot/halt. The suspend/resume case is a bit
complex, so this documents that so things are clearer.

We want to know about users of the API in incorrect places so
that their callers are corrected, so this also adds a warn
for those cases.

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/firmware/request_firmware.rst
drivers/base/firmware_class.c