]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit81f95076281fdd3bc382e004ba1bce8e82fccbce
tree59cf64e1d454e740af39a4f397ee44c8f822b389
parenta669f04ab4b4d7e5a7ac8250f0b688a07e10b04c
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