]> 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)
commitfac6191e19e2955e3b40c1d9ff14d0faefbecc8c
tree59cf64e1d454e740af39a4f397ee44c8f822b389
parent2ef48a8549956256614e12ea4d346c1428c25e43
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