]> www.infradead.org Git - users/dwmw2/linux.git/commit
accel/amdxdna: Add MODULE_FIRMWARE() declarations
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 4 Feb 2025 17:40:25 +0000 (11:40 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Tue, 4 Feb 2025 19:05:48 +0000 (13:05 -0600)
commitecee4d0695067ae04959b121028b42a588e75370
treee3bdc4f24483bb72970e6c0517e9b5dfb48101e9
parent6daaae5ff7f3b23a2dacc9c387ff3d4f95b67cad
accel/amdxdna: Add MODULE_FIRMWARE() declarations

Initramfs building tools such as dracut will look for a MODULE_FIRMWARE()
declaration to determine which firmware to include in the initramfs
when a driver is included in the initramfs.

As amdxdna doesn't declare any firmware this causes the driver to fail
to load with -ENOENT when in the initramfs.  Add the missing declaration
for possible firmware.

Reported-by: Renjith Pananchikkal <Renjith.Pananchikkal@amd.com>
Suggested-by: Alexander Deucher <Alexander.Deucher@amd.com>
Fixes: 8c9ff1b181ba ("accel/amdxdna: Add a new driver for AMD AI Engine")
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20250204174031.3425762-1-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250204174031.3425762-1-superm1@kernel.org
drivers/accel/amdxdna/amdxdna_pci_drv.c