Message ID | 20240208-feature_poe-v3-2-531d2674469e@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58113-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp155937dyd; Thu, 8 Feb 2024 05:13:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGP+FtJsWSRLH3sE5BccYRWaESyuTIVKlNvbPG62TMgpLMbi7pJypMNEMwsES44ORZmgr3X1k53icrhlibjh3y7nDVdw== X-Google-Smtp-Source: AGHT+IE2b12qXv21Y8j5aYFvdRa6mBNX4R9Acg9eNO05y2h9+SGwS1oznBcbqZ7dmzhaxgekYFr9 X-Received: by 2002:a05:6870:82aa:b0:219:7f2b:1f2c with SMTP id q42-20020a05687082aa00b002197f2b1f2cmr10690294oae.37.1707398013726; Thu, 08 Feb 2024 05:13:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707398013; cv=pass; d=google.com; s=arc-20160816; b=eYLvgLI63yw4Uejzk2xD6Ea5jKUf74OBQj6jDaH+bAz/75MfwIwz7y7y9zjXLqUQpZ PA2M+NmqsAgnmgQ+3UMSXFn3/BmVW/6I6MoxHH9Gi/GA96sKptFyFxz7Tuio4IQKfB+l /g63Jj87Lyb4CfIvGIbIgG/LhTliZjWRaHxftSjnp8+e1LFGuVRA5kC8hpvEG4jmE3JG jt6MUazXbgVpjZ04mf1KO0EM7sbHl0HnYuSgF18sSUSL1yLXk2L5jRWhqgod2B+pkyGk HkswgGoHT1HQFVVRWZnwfA8OWni8NekKqg/pJnkwzFDlLtLQTmfyz3z5xKMiq/G45s/7 iAzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Fnfcwj6WoFHFSFDxFS5xSb9zFxnM05ST2DetoHzoqp0=; fh=I801QN43HSsKdRsGw4xvqdNXouWZfvOb87g0nsOZOH8=; b=m8RJ6bIPaI3kKb0Qg5falYn7M9BTR9epDMtAw9/j9RlGSGeYI46zxvXJnFpe+0+STx GkfCoPaWE+DTPiUs6cKbjzIhnpi6UMhHh/2PD8xI7e85/w2YS7DexRcHDz9l2DYCH+SJ 7vZUbpmjl7TeX56WE2sDBBWp+59eYRjyKctAPXH7RQindJp/PGG5ylYv+jpQuL9nGe1a 1aEObmhCpYeC3YeF/DOWyebkgGlrht9VNe/l7ubcXWTZh2XLPYO8KixZD4r5CF8NaaPF EGD9VWpS2t7ClADBI2kPg7bBpzqmO6AaMUXl9Vn/T3z0lD7bVwUEZkExfEQuJVQsNjPI LiMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=K4ZBaAhK; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-58113-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58113-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCW6Ju24qOJqAjY7JkAzZKafWdlLQr0bRfmfOS7OJ+VwzewvAwIi754D3daPb1xUFsrdt9eMXEMbAXSdZiveljGBv5ue/g== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cn6-20020a056a020a8600b005dbf4efa1f8si4093575pgb.852.2024.02.08.05.13.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58113-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=K4ZBaAhK; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-58113-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58113-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F1BB9289C12 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 13:12:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4F3D7D41F; Thu, 8 Feb 2024 13:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="K4ZBaAhK" 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 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 <kory.maincent@bootlin.com> 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: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jonathan Corbet <corbet@lwn.net>, Luis Chamberlain <mcgrof@kernel.org>, Russ Weight <russ.weight@linux.dev>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Oleksij Rempel <o.rempel@pengutronix.de>, Mark Brown <broonie@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project <dentproject@linuxfoundation.org>, Kory Maincent <kory.maincent@bootlin.com> X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790336579712331342 X-GMAIL-MSGID: 1790336579712331342 |
Series |
net: Add support for Power over Ethernet (PoE)
|
|
Commit Message
Köry Maincent
Feb. 8, 2024, 1:08 p.m. UTC
This allows fw_devlink to create device links between consumers of
a PSE and the supplier of the PSE.
Sponsored-by: Dent Project <dentproject@linuxfoundation.org>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Changes in v3:
- New patch
---
drivers/of/property.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On Thu, Feb 08, 2024 at 02:08:39PM +0100, Kory Maincent wrote: > This allows fw_devlink to create device links between consumers of > a PSE and the supplier of the PSE. It will be interesting to see how this turns out. fw_devlink often gets itself into knots with MAC and PHY dependencies sometimes being circular. If we get a PSE on an MDIO bus, this is going to get even more interesting. > Sponsored-by: Dent Project <dentproject@linuxfoundation.org> > Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
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, },