HomeFreeBSD

LinuxKPI: firmware, implement deferred loading for "nowait"

Description

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
Reviewed by: hselasky, imp (earlier version)
Differential Revision: https://reviews.freebsd.org/D30830

(cherry picked from commit 399da52fff81a33b1f2c0cee3e8574bc3c63166f)

Details

Provenance
bzAuthored on Jun 20 2021, 1:49 PM
Reviewer
hselasky
Differential Revision
D30830: LinuxKPI: firmware, implement deferred loading for "nowait"
Parents
rGf9fa2908cfac: LinuxKPI: avoid userret: Returning with with pinned thread
Branches
Unknown
Tags
Unknown