]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: firmware, implement deferred loading for "nowait"
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 20 Jun 2021 13:49:46 +0000 (13:49 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 28 Jun 2021 12:13:43 +0000 (12:13 +0000)
commit399da52fff81a33b1f2c0cee3e8574bc3c63166f
treecbddae0a01e38002165e694ae62c01a68d70efac
parent539228d372fae8c4cc401b7ba4620f27783be5a4
LinuxKPI: firmware, implement deferred loading for "nowait"

Change linuxkpi_request_firmware_nowait() to deferred firmware loading
scheduling a task.  This changes behaviour in some cases that we
return from loading the driver before the driver is finished
initialising if the driver does not deal with it (wait).
This brings the behaviour one would expect from when this function is
called and I implemented it to see if it would help a specific case.

Sponsored by: The FreeBSD Foundation
MFC after: 12 days
Reviewed by: hselasky, imp (earlier version)
Differential Revision: https://reviews.freebsd.org/D30830
sys/compat/linuxkpi/common/src/linux_firmware.c