From patchwork Thu Feb 8 13:08:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13549809 X-Patchwork-Delegate: kuba@kernel.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C8E5763F6; Thu, 8 Feb 2024 13:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397806; cv=none; b=CBPWSGvNZbBSQKrqdGdTPc1XjbUdALHdhx8IG6jZVRfS6rU4cwIAp7XhIgeUM6beS9jtdI8hmm9bxSOqyU8Oke87VrSNU6U1/uU+2xbhpQxkLvGlTKzwyyjVj4OCbx+JWZZRlBojo825vJFTDVAyhC06VSsfQu7XHFHPnc6t6o8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397806; c=relaxed/simple; bh=wQOLvaK0vUXgBVwly+e8f9lE0mIS2a4pRWvYnihtiWw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XCHQsIN+bPRsAlT0flQRfFlMkuj9lGe6+v8JlY/G1ztOAyX8ePtOuL3TM1iAl+oa3px1STHe5eNyi2JnQZqB6SRupLg27uO2FyCPfr1sli1MIAlRIMuLpoV/hsqjDtTiwFCVLjz5P82TsEpXYkDYYQaEZjcJamv8yr99NMfOYxM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=K4ZBaAhK; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="K4ZBaAhK" Received: by mail.gandi.net (Postfix) with ESMTPSA id F36791BF209; Thu, 8 Feb 2024 13:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707397795; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fnfcwj6WoFHFSFDxFS5xSb9zFxnM05ST2DetoHzoqp0=; b=K4ZBaAhKE4SP8WhZiYB2XQtSadgZu52rE7zcdSzuRMuENDYkxg/u1JuBdDcB19jg+UVEgT iZYYN9O/ExyvfeRcr0K4YGPDYWkGzjFO1kuOGHZ1aAP0enK7/Tguy1buBhm91tsRKEdvjL haRAYNTJnI8MtizOg/df6mRhRQn4+1KPIeMf6ISB90C0gMX1oEV+WUjQ1mW8nOlahBl2kr kj4+Llp1VMlO5lYLiOzovdzuTpuoZc3O+uz0A4m7vpBiOujTA+KGvOxf8NR/ybre+ZZHKV xyAhmGAiAEEK3P+UcKRQNxVnJD9FyZDfGJZnyrTPxQiDNG9NdnZ2H8IVW/fAbw== From: Kory Maincent Date: Thu, 08 Feb 2024 14:08:39 +0100 Subject: [PATCH net-next v3 02/17] of: property: Add fw_devlink support for pse parent Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240208-feature_poe-v3-2-531d2674469e@bootlin.com> References: <20240208-feature_poe-v3-0-531d2674469e@bootlin.com> In-Reply-To: <20240208-feature_poe-v3-0-531d2674469e@bootlin.com> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksij Rempel , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , Kory Maincent X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-Patchwork-Delegate: kuba@kernel.org This allows fw_devlink to create device links between consumers of a PSE and the supplier of the PSE. Sponsored-by: Dent Project Signed-off-by: Kory Maincent Reviewed-by: Andrew Lunn --- Changes in v3: - New patch --- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index 641a40cf5cf3..efe4dde65f30 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1269,6 +1269,7 @@ DEFINE_SIMPLE_PROP(leds, "leds", NULL) DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) DEFINE_SIMPLE_PROP(panel, "panel", NULL) DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells") +DEFINE_SIMPLE_PROP(pses, "pses", "#pse-cells") DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") @@ -1359,6 +1360,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, },