Skip to content

Commit c5e4ce9

Browse files
avpatelpalmer-dabbelt
authored andcommitted
of: property: Add fw_devlink support for msi-parent
This allows fw_devlink to create device links between consumers of a MSI and the supplier of the MSI. Signed-off-by: Anup Patel <[email protected]> Acked-by: Rob Herring <[email protected]> Reviewed-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent c4676f8 commit c5e4ce9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/of/property.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,7 @@ DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells")
12671267
DEFINE_SIMPLE_PROP(leds, "leds", NULL)
12681268
DEFINE_SIMPLE_PROP(backlight, "backlight", NULL)
12691269
DEFINE_SIMPLE_PROP(panel, "panel", NULL)
1270+
DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells")
12701271
DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
12711272
DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
12721273

@@ -1356,6 +1357,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
13561357
{ .parse_prop = parse_leds, },
13571358
{ .parse_prop = parse_backlight, },
13581359
{ .parse_prop = parse_panel, },
1360+
{ .parse_prop = parse_msi_parent, },
13591361
{ .parse_prop = parse_gpio_compat, },
13601362
{ .parse_prop = parse_interrupts, },
13611363
{ .parse_prop = parse_regulators, },

0 commit comments

Comments
 (0)