Skip to content

Commit ac88d9a

Browse files
airliedintel-lab-lkp
authored andcommitted
modules/firmware: add a new option to denote a firmware group to choose one.
This adds a tag that will go into the module info, only one firmware from the group given needs to be available for this driver to work. This allows dracut to avoid adding in firmware that aren't needed. This just brackets a module list in the modinfo, the modules in the list will get entries in reversed order so the last module in the list is the preferred one. The corresponding dracut code it at: dracutdevs/dracut#2309 Cc: Luis Chamberlain <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Dave Airlie <[email protected]>
1 parent a81b1fc commit ac88d9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/module.h

+2
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ extern typeof(name) __mod_##type##__##name##_device_table \
290290
* files require multiple MODULE_FIRMWARE() specifiers */
291291
#define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware)
292292

293+
#define MODULE_FIRMWARE_GROUP_ONLY_ONE(_grpname) MODULE_INFO(firmware_group_only_one, _grpname)
294+
293295
#define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, __stringify(ns))
294296

295297
struct notifier_block;

0 commit comments

Comments
 (0)