lkml.org 
[lkml]   [2022]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 4/9] of: property: fw_devlink: Add support for "depends-on"
Date
The generic "depends-on" property expresses a simple functionnal
dependency. The "depends-on" consumer must be available before
the "depends-on" provider.

Handling "depends-on" as a fw_devlink matches this dependency in
a generic way.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
drivers/of/property.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/of/property.c b/drivers/of/property.c
index 134cfc980b70..e96678d78f6a 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -1324,6 +1324,7 @@ DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells")
DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells")
DEFINE_SIMPLE_PROP(leds, "leds", NULL)
DEFINE_SIMPLE_PROP(backlight, "backlight", NULL)
+DEFINE_SIMPLE_PROP(depends_on, "depends-on", NULL)
DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")

@@ -1417,6 +1418,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
{ .parse_prop = parse_regulators, },
{ .parse_prop = parse_gpio, },
{ .parse_prop = parse_gpios, },
+ { .parse_prop = parse_depends_on, },
{}
};

--
2.38.1
\
 
 \ /
  Last update: 2022-12-07 17:26    [W:1.205 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site