From patchwork Tue Feb 27 14:42:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?K=C3=B6ry_Maincent?= X-Patchwork-Id: 207244 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2741603dyb; Tue, 27 Feb 2024 06:45:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTmOBvjqqGaCvOP3KO00ylwf4j2FoLepCiBYiACbaFDYVvO1ntXWYGPSD/6bD/78CNgx/UBwIxfB9DK24TNYlk+svQ3g== X-Google-Smtp-Source: AGHT+IEv3bT/iTVNBKuMUou+f8aft6qlafGatPCeZgk8N/0ge9g55MKaHz4uG9Vh6Ri589eSKHBY X-Received: by 2002:a05:622a:1b9f:b0:42c:3a04:58ca with SMTP id bp31-20020a05622a1b9f00b0042c3a0458camr14576907qtb.11.1709045146380; Tue, 27 Feb 2024 06:45:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709045146; cv=pass; d=google.com; s=arc-20160816; b=oozwIpcyPY7C0Y1jhzIJMFbDM6vDZoA8gmd+Je/oqX+a1x3Wdn3aqzjnw/4RbWOHJh knimAkKCFK0MeJtlWi6TOLGff0aVwimVxHniziwyJjBlcPwl2cWGi7E4ecCbvLIxJd7s zXrxNyYdWO5MecoshXrPzo0MLNloT0aqFbNVN3xs/sMvLezqrKl5Qhj15ECeOwI+wg03 0PDPYW+fdqpFUN8Fk13Vjfl/XvMPsA2NuXq3zuyBeODZ8nG+JnMGDPc6z6eQGMBkcEXC rrIJadGSW2PQDOSgM2v7mjW8Mr9ufOUUx5EVpPlRHU19+zguSVBGlNXbLG5ZzWr1bZWM tPDg== 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=AT7HF8blg+QUl+1AkEF4c8gKh4Um8SfTBovXNKYLb20=; fh=7S+YztZcCxZKIOm2mMOwIzm96FjMcKQ7LjGMKaNLlnQ=; b=mAi3s3+vCJIVEkHdkGBd6cBggnux0b4lEECeqHWbzHVSBKoSPnof8v3It/U7Zfpv07 vD8HVkLyqubXRnI7SScWLRRXR19NvIsGOMw4KbE5HHJ/rOqY6hXLUsMOUkFQYqa6ge1F QFUehPklmKdxKuNuxQqpQ7U69Bjs2NLyVaqruMSM6V/FVsd32nToaCVIgO24G0de0kZU v+0FT07hSjfL/1LIgFdrtuswd6g4HEYLOjzYzzuFWE4ARwwVs/kxLxzP8ivhOppQ9qQf pjVl0V8wejC4iS2RlPkODNKMSTdFhbPNg0mLQAAGsEaJdu1ozDH064ERd13GR0Dqtvmc niDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TZTSyRxl; 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-83414-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83414-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g10-20020ac8480a000000b0042e7c30eceesi5839265qtq.465.2024.02.27.06.45.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:45:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83414-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TZTSyRxl; 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-83414-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83414-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1FDAD1C238DA for ; Tue, 27 Feb 2024 14:45:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9B14149E13; Tue, 27 Feb 2024 14:43:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="TZTSyRxl" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 093D313B29B; Tue, 27 Feb 2024 14:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709044998; cv=none; b=bB+Xh2IggGzq9zosH+IHiSWl/CgSAExINLDS5y+ST18TRYEcA1bvrHyDj7FtxmKj9MIuBECCy9Wokku7ZDKYvrRbUh+9DcGiVl8PNC6UsOnGeyCNk8l6nDKll8SSPKA6k8x6oLmyuiYYT4II+DemkF3VPwmPcIWW9Z6B1GskErQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709044998; c=relaxed/simple; bh=3Dn5Z7gs9ooWjrdQoGkSDWdaFikj6YkWqQme8khskjU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=becLDcLZK4IUWgo+k0EQCJoDUpdVm0T2bKVHDCwDZxKHZC3T+Lz7A6AbICGchqQ66YCR5kMmwoWagz7iNP0y/ZCGBJegZl0/dzEJ5g2qrlfJZUMayDcN2TZUFiInhe/T8svSvH16hlz7q2rbuPaCWYyD9leQ5w/Z8ZX7GaJMqxY= 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=TZTSyRxl; arc=none smtp.client-ip=217.70.183.200 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 2612220014; Tue, 27 Feb 2024 14:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709044988; 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=AT7HF8blg+QUl+1AkEF4c8gKh4Um8SfTBovXNKYLb20=; b=TZTSyRxlWWjFgduXF3LReHlKZFl749ZA2QVAkyNuvPYKGn3Oeqoe6CySRaIxmibXvUEXB/ T4WAxdXbTvZqAL+zcbgYdQyniUof6/P436iQDZB6BK4S2n+Ndujfz4K45S5GMSo7hdk0ev h+STWA9s5YX3Gj9MnFnf1VZNAJfVj4tyUVbgnSPe2amE1Wi8QLOiExsQQRYh4uAvW4HiPt qAshu0f1bO1oSseyJgM3xGgb8SM0TzosZ5HQqxjUh31NPMvZUuIjJ2ikyE1na/KcjU5YZ0 UibA57DEdoeSLE9mTMPF6TXtJi4Zht9pELJMCdSxix/xb0oS3TN3u4nWgoqHDw== From: Kory Maincent Date: Tue, 27 Feb 2024 15:42:44 +0100 Subject: [PATCH net-next v5 02/17] of: property: Add fw_devlink support for pse parent Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240227-feature_poe-v5-2-28f0aa48246d@bootlin.com> References: <20240227-feature_poe-v5-0-28f0aa48246d@bootlin.com> In-Reply-To: <20240227-feature_poe-v5-0-28f0aa48246d@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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792063723149364786 X-GMAIL-MSGID: 1792063723149364786 This allows fw_devlink to create device links between consumers of a PSE and the supplier of the PSE. This patch is sponsored by Dent Project . Reviewed-by: Andrew Lunn Signed-off-by: Kory Maincent --- 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 b71267c6667c..c14001d40cd2 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1240,6 +1240,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") @@ -1344,6 +1345,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, },