[PATCH vRFC 0/8] Refactor and rename request firmware API

From: Mukesh Ojha
Date: Thu Feb 22 2024 - 13:01:22 EST


This came as an idea, when i was looking for nowarn version
of request_firmware_into_buf() but ended up doing this.

I am keeping this as RFC, as i am not sure whether we are
open for such changes in API or some refactors.
Please provide feedback.

Mukesh Ojha (8):
firmware_loader: Refactor request firmware lower level functions
treewide: rename firmware_request_nowarn()
treewide: rename firmware_request_platform()
treewide: rename firmware_request_cache()
firmware: Convert minor inline function to macro
firmware: Move module template to the bottom
firmware: remove prototype of fw_cache_piggyback_on_request()
firmware: FW_OPT_UEVENT for all request_firmware family functions

.../firmware/fallback-mechanisms.rst | 4 +-
.../driver-api/firmware/lookup-order.rst | 2 +-
.../driver-api/firmware/request_firmware.rst | 14 +-
drivers/accel/ivpu/ivpu_fw.c | 2 +-
drivers/base/firmware_loader/main.c | 226 ++++++++----------
drivers/bluetooth/btbcm.c | 2 +-
drivers/bluetooth/btintel.c | 4 +-
drivers/bluetooth/hci_bcm4377.c | 4 +-
drivers/crypto/ccp/sev-dev.c | 6 +-
drivers/crypto/inside-secure/safexcel.c | 4 +-
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 2 +-
drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 2 +-
drivers/input/touchscreen/chipone_icn8505.c | 2 +-
drivers/input/touchscreen/silead.c | 4 +-
drivers/media/tuners/si2157.c | 2 +-
drivers/memory/brcmstb_dpfe.c | 2 +-
drivers/net/ethernet/intel/ice/ice_main.c | 2 +-
drivers/net/wireless/ath/ath10k/core.c | 2 +-
drivers/net/wireless/ath/ath10k/testmode.c | 2 +-
drivers/net/wireless/ath/ath11k/core.c | 2 +-
drivers/net/wireless/ath/ath12k/core.c | 2 +-
.../broadcom/brcm80211/brcmfmac/firmware.c | 2 +-
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c | 2 +-
.../net/wireless/intel/iwlwifi/iwl-dbg-tlv.c | 2 +-
.../net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +-
.../wireless/mediatek/mt76/mt76x0/usb_mcu.c | 2 +-
drivers/net/wireless/mediatek/mt7601u/mcu.c | 2 +-
drivers/net/wireless/realtek/rtw89/fw.c | 2 +-
drivers/net/wireless/silabs/wfx/fwio.c | 2 +-
drivers/usb/host/xhci-pci-renesas.c | 2 +-
include/linux/firmware.h | 10 +-
lib/test_firmware.c | 2 +-
sound/pci/hda/cs35l41_hda.c | 2 +-
sound/pci/hda/cs35l56_hda.c | 2 +-
sound/soc/codecs/wm_adsp.c | 2 +-
sound/soc/sof/fw-file-profile.c | 4 +-
36 files changed, 152 insertions(+), 180 deletions(-)

--
2.43.0.254.ga26002b62827