Message ID | 20221207162435.1001782-5-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp280403wrr; Wed, 7 Dec 2022 08:26:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6dnq6em2PGJv1mk0SUOQafAu0/zSLJVUIOEimMO0WuWDCtdPH5WXPBWXvMUW2G4qo4AEaC X-Received: by 2002:a17:902:b692:b0:188:fc5f:84f2 with SMTP id c18-20020a170902b69200b00188fc5f84f2mr78685734pls.137.1670430370789; Wed, 07 Dec 2022 08:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670430370; cv=none; d=google.com; s=arc-20160816; b=DRZT5LewTTP88unXM4JEPa2DDPImBreExqpJr6L07G0FKLcKlAKCrCdb9E4bOcISbI ksppqVWF4G0I9BSVh5csdgRdVJF1qetcrryv6ulW6d2hS5XMbXimGFFCDlE2oycsbqOc Dc6Ad9JypbVZBdCIHa7r1fSDY1LU667itYYN8fLGCdmqKSLRMG6zqIJD3wFZOkMOjLQU Jnce0Jmn/TNmvQkHsFpVacI05z/mLYGQ001shkiFCsXxn9xSMs8cy2/e+yZSXLyfm0u5 C7184NNfDjP1ORlCUA4Af/N2uMfnNY5bUEtd4eX7K5oYxCOqW2KoH1mPeStyI1R7ktt9 Rs1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MS5FcYqq6lphv5bSGh7WZDJt7IC7M73R256NubizXec=; b=sonu0Fkf3NP4mPdZ02+z3s6QG1cIxc+83bEazIvAXpOY+9pBsRGrPWZ9O9156H1ilo uZW9W7fnZvpYW5Ki86YfpWVQOBavVHFlczQiyJoVCseXNyuxGWLymmuztoQpOqayYw58 +l4N5BArqEMuznPvVqVP0014Q5YOegpb1kzg+tDXMYQzfX9B9JSbhqiYt3FDUFs5jVx6 8lK7UQyJtdy14+ehbblW8DXea9t7xAfcNMYCRhENpmBcwTtc13dNX5dmpNpWHVW2HrvW 4eynoMINOjedWk6VWNGhibxCQ4VB/u4L4S0e+16occMMfWgow4wZJ9o4xaqfO5mqgNC9 0puQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=levzMiiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa11-20020a17090b1bcb00b00218050d0cfcsi2016496pjb.183.2022.12.07.08.25.56; Wed, 07 Dec 2022 08:26:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=levzMiiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiLGQZD (ORCPT <rfc822;foxyelen666@gmail.com> + 99 others); Wed, 7 Dec 2022 11:25:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230018AbiLGQYw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Dec 2022 11:24:52 -0500 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E5C05E9C7; Wed, 7 Dec 2022 08:24:51 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id F06204000B; Wed, 7 Dec 2022 16:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1670430290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MS5FcYqq6lphv5bSGh7WZDJt7IC7M73R256NubizXec=; b=levzMiiyqvZQw+FrML4b35QComxkhyuxLis/u7chs95b8evzNvM/txYKoRR88FjyHyh7yr w74g39KZIsvnA6YPFrvvR1wwpNpxm98DI10XS6S54C5aonZ+2kHKrEEHk3ktQ9hL4Ii4e+ Sg6KAhmrdv99JClWCFSCSXeSn2XPq6KykcbyS8tdgMf1F0wHNsaAjx3VlNwfrkVPJHd8L7 L0sCI3tsi4j7iXw5rolDoqsmD3v1/zJ2YKMMEhyqdZvaO7T6zZ9V0y7slzGymqbizvgkI3 ytSi/VWzIbsYuNf0ciSpXMR3U1buaRHTrdc0WK1qO82aByrvJt9eEjyzdTBNKA== From: Herve Codina <herve.codina@bootlin.com> To: Geert Uytterhoeven <geert+renesas@glider.be>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Herve Codina <herve.codina@bootlin.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Magnus Damm <magnus.damm@gmail.com>, Gareth Williams <gareth.williams.jx@renesas.com> Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Miquel Raynal <miquel.raynal@bootlin.com> Subject: [PATCH v3 4/9] of: property: fw_devlink: Add support for "depends-on" Date: Wed, 7 Dec 2022 17:24:30 +0100 Message-Id: <20221207162435.1001782-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221207162435.1001782-1-herve.codina@bootlin.com> References: <20221207162435.1001782-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751573196196177576?= X-GMAIL-MSGID: =?utf-8?q?1751573196196177576?= |
Series |
Add the Renesas USBF controller support
|
|
Commit Message
Herve Codina
Dec. 7, 2022, 4:24 p.m. UTC
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, }, {} };