linux/Documentation/driver-api/firmware
Russ Weight 97730bbb24 firmware_loader: Add firmware-upload support
Extend the firmware subsystem to support a persistent sysfs interface that
userspace may use to initiate a firmware update. For example, FPGA based
PCIe cards load firmware and FPGA images from local FLASH when the card
boots. The images in FLASH may be updated with new images provided by the
user at his/her convenience.

A device driver may call firmware_upload_register() to expose persistent
"loading" and "data" sysfs files. These files are used in the same way as
the fallback sysfs "loading" and "data" files. When 0 is written to
"loading" to complete the write of firmware data, the data is transferred
to the lower-level driver using pre-registered call-back functions. The
data transfer is done in the context of a kernel worker thread.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Tianfei zhang <tianfei.zhang@intel.com>
Tested-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Link: https://lore.kernel.org/r/20220421212204.36052-5-russell.h.weight@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-26 12:34:28 +02:00
..
efi efi/libstub: Add libstub/mem.c to the documentation tree 2020-03-08 09:58:13 +01:00
built-in-fw.rst Documentation/driver-api: firmware/built-in-fw: drop doubled word 2020-07-10 14:58:00 +02:00
core.rst
direct-fs-lookup.rst Documentation/driver-api: firmware/direct-fs-lookup: drop doubled word 2020-07-10 14:58:01 +02:00
fallback-mechanisms.rst docs: driver-api: firmware: fallback-mechanisms: Fix rendering of bullet point 2020-09-08 13:32:06 +02:00
firmware_cache.rst Documentation/driver-api: firmware/firmware_cache: drop doubled word 2020-07-10 14:58:00 +02:00
fw_search_path.rst
fw_upload.rst firmware_loader: Add firmware-upload support 2022-04-26 12:34:28 +02:00
index.rst firmware_loader: Add firmware-upload support 2022-04-26 12:34:28 +02:00
introduction.rst
lookup-order.rst firmware: Add new platform fallback mechanism and firmware_request_platform() 2020-03-20 14:54:04 +01:00
other_interfaces.rst docs: Fix a misdirected kerneldoc directive 2019-05-24 14:31:50 -06:00
request_firmware.rst Documentation/driver-api: firmware/request_firmware: drop doubled word 2020-07-10 14:58:01 +02:00