From patchwork Tue Oct 3 04:43:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 147615 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1853402vqb; Mon, 2 Oct 2023 21:45:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtxMGEmIPGlNoMs2kScEdrozGegRYgHecQtKVEXSVY2jfJDvx9gS8ozukYedSQ9VKGAmZL X-Received: by 2002:a05:6a00:2da4:b0:68a:582b:6b62 with SMTP id fb36-20020a056a002da400b0068a582b6b62mr2389264pfb.7.1696308300557; Mon, 02 Oct 2023 21:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696308300; cv=none; d=google.com; s=arc-20160816; b=eZMR15fQwrp2Q4sn4JyLzmQ3i/zpGRxxGCU5pUINxl/5M8OhvRQT1PK1Bz6giLk/BW qBcN99pMnwShy0sQZCz5HWfljzjREmZL9demppff9jMVPSnJNFlZWFrqv/owiZY8AYhw 0ver9egz3BIS1/brz/2MeKjq8j4G2g/1wuKm9sobx8oA/j0C87DlL2eyLf+7+eU9UUDD IMIV+BmU6cdWitWsr3VpB0dDw/3LG33NZJnuUcdsHeCAWLNwSU//+yLvErVWTTnQIZO3 sAUib362rWhDeMROxRfNmCJjzxNPMvHHsL0weJD1P5n5ZGKb+gWTjUvJdeQrjhuu2Oam K/pw== 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=7KBK3NZC+n7aQ9gEOFAwoNpYjPv+cjuqYwdG+XSaoH8=; fh=nA8r0MLomCQsDYAyR+vEcHtNwgpFoJpQ33HkQ+L94yw=; b=HxGYTGRR0uE11w4wcJDQHTtrP7bgYGGmQCIZnhgm6eIzCmpbcMnkdVeNnJgA0zMHfW 4/Z6lEIraZUb+Ry5Q4rZbnnkEEjdqE3P4qdsPvMqEGTHNjYhK7yh1v8L/ZSPJzLdCPdd Mm1bdtFIQ8mz2mCue2S6mAKtRzyjirXdBPaeAC/ziZePac/OZE/CzKR412z0eJxfhwL8 aww+NzcRItFxm45THsBkQJIVmvu5Lq5q6F0iqIdknrsYnTHjjbpMYKKQBDYK1km2PYLs BjMjLf0iCVylLrDs4b7d+ih4k3dpKHvH8x5ERoAuNV7iICic834MgTffeHVMlXvTawvk ohVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=A+C8NvPo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id fb34-20020a056a002da200b0068fbb75adedsi678585pfb.127.2023.10.02.21.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 21:45:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=A+C8NvPo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B9718802D453; Mon, 2 Oct 2023 21:44:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239091AbjJCEov (ORCPT + 18 others); Tue, 3 Oct 2023 00:44:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239090AbjJCEot (ORCPT ); Tue, 3 Oct 2023 00:44:49 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38751D7 for ; Mon, 2 Oct 2023 21:44:44 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-577fff1cae6so324021a12.1 for ; Mon, 02 Oct 2023 21:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1696308283; x=1696913083; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7KBK3NZC+n7aQ9gEOFAwoNpYjPv+cjuqYwdG+XSaoH8=; b=A+C8NvPobBJU4BzQY8nusqME44W3wFPQ0giTDNyX8c1ss4Agalg9UoIUWbSvetO+RI fWgmgNwbC/Ig9WZ8J8H7p0IPnw0uQ/Eea3ByPzWrQD+ug6UFf4SuYpgiYCoigFJu3V6m WAYkNacl9ewRKOc4lE4ZLRuGwVoIOQpaT4qvljvTGJP9TfzSIuELoDgtC1NOVE1XLMm/ 0TsRFwuuZI6pqnKeTraVzTykKlmhI+YTGVXwgpODOjS6MvwwHeZ4VstdBBz5LQ+ajFR0 KaFx2NzXqHZvnrsc0pH3DwczXvcvFoPHFz33E1WUoRyygYItiKO+UvQJdY6lO2Mwl//l ZNDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696308283; x=1696913083; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7KBK3NZC+n7aQ9gEOFAwoNpYjPv+cjuqYwdG+XSaoH8=; b=OAQ5n9ST8JiYssB+r140fmb8vAFhyJnXHbgphMmVEItxm7SVzzirRpE8ickh/fIGfm ytuRLWAfgZ/es47KYvk5VC64Hibo3ZAFcZFaegpp5kCF/wqHbnHEoFHjrNA1FLc2yj0v h0vSiBINHyt7+Q8EeVTWuv84jCCm6Lg0e48QX7ZYT8tO6tv9uGvMdeGPQ2+HkA57uRsC uxIZEtxr6z7tVETUUteiV6WMHjj0mtwt03gfsHOMg4T5We7+t3aaRLLaYqz4jf8vuy8W x1krLOSktsvFuFLT2klo/CTSPohfGlJ4HBTNa1RaEoNsq5vGIZhbIwz7C3Es2bD/p2ie nqQA== X-Gm-Message-State: AOJu0YzzWqI3jI+buvjbXUYB1RUM/fcEIvjNlABd0FWP7XNuDcdLeKAQ 1Jfd1/chyfK/8hSwJRXBK5zovQ== X-Received: by 2002:a05:6a21:3395:b0:14e:2208:d62f with SMTP id yy21-20020a056a21339500b0014e2208d62fmr2942718pzb.22.1696308283477; Mon, 02 Oct 2023 21:44:43 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([171.76.84.132]) by smtp.gmail.com with ESMTPSA id h9-20020aa786c9000000b0068e49cb1692sm346421pfo.1.2023.10.02.21.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 21:44:43 -0700 (PDT) From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley Cc: Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anup Patel , Rob Herring Subject: [PATCH v10 02/15] of: property: Add fw_devlink support for msi-parent Date: Tue, 3 Oct 2023 10:13:50 +0530 Message-Id: <20231003044403.1974628-3-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231003044403.1974628-1-apatel@ventanamicro.com> References: <20231003044403.1974628-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 21:44:59 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778708172752534677 X-GMAIL-MSGID: 1778708172752534677 This allows fw_devlink to create device links between consumers of a MSI and the supplier of the MSI. Signed-off-by: Anup Patel Acked-by: Rob Herring Reviewed-by: Saravana Kannan --- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index cf8dacf3e3b8..afdaefbd03f6 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1267,6 +1267,7 @@ DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells") 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_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") @@ -1356,6 +1357,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_leds, }, { .parse_prop = parse_backlight, }, { .parse_prop = parse_panel, }, + { .parse_prop = parse_msi_parent, }, { .parse_prop = parse_gpio_compat, }, { .parse_prop = parse_interrupts, }, { .parse_prop = parse_regulators, },