]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
of: property: Add fw_devlink support for pse parent
authorKory Maincent (Dent Project) <kory.maincent@bootlin.com>
Sun, 14 Apr 2024 14:21:51 +0000 (16:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 17 Apr 2024 02:17:16 +0000 (19:17 -0700)
This allows fw_devlink to create device links between consumers of
a PSE and the supplier of the PSE.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://lore.kernel.org/r/20240414-feature_poe-v8-2-e4bf1e860da5@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/of/property.c

index a6358ee99b74b99a90df38c63e08943b628a7b80..cc064151853ea79f4c37abd02bc2e6ae3c1fad2b 100644 (file)
@@ -1252,6 +1252,7 @@ DEFINE_SIMPLE_PROP(backlight, "backlight", NULL)
 DEFINE_SIMPLE_PROP(panel, "panel", NULL)
 DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells")
 DEFINE_SIMPLE_PROP(post_init_providers, "post-init-providers", NULL)
+DEFINE_SIMPLE_PROP(pses, "pses", "#pse-cells")
 DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
 DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
 
@@ -1357,6 +1358,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
        { .parse_prop = parse_backlight, },
        { .parse_prop = parse_panel, },
        { .parse_prop = parse_msi_parent, },
+       { .parse_prop = parse_pses, },
        { .parse_prop = parse_gpio_compat, },
        { .parse_prop = parse_interrupts, },
        { .parse_prop = parse_regulators, },