driver core: Add fw_devlink kernel commandline option
commit8375e74f2bca9802a4ddf431a6d7bd2ab9950f27
authorSaravana Kannan <saravanak@google.com>
Sat, 22 Feb 2020 01:40:35 +0000 (21 17:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 16:58:48 +0000 (4 17:58 +0100)
tree791117d1257c1c187d5c6e0d087f8331c072fb00
parent1745d299af5b373abad08fa29bff0d31dc6aff21
driver core: Add fw_devlink kernel commandline option

fwnode_operations.add_links allows creating device links from
information provided by firmware.

fwnode_operations.add_links is currently implemented only by
OF/devicetree code and a specific case of efi. However, there's nothing
preventing ACPI or other firmware types from implementing it.

The OF implementation is currently controlled by a kernel commandline
parameter called of_devlink.

Since this feature is generic isn't limited to OF, add a generic
fw_devlink kernel commandline parameter to control this feature across
firmware types.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200222014038.180923-3-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/kernel-parameters.txt
drivers/base/core.c
include/linux/fwnode.h