From patchwork Wed Oct 25 14:28:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 158132 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2642254vqx; Wed, 25 Oct 2023 07:29:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbHWACBZeRVAIXkmJxrhZ7usBvqPFOlzdJZhr784v4EgkcSgulptAjGl6fM2gOJww4MMeC X-Received: by 2002:a0d:ccd3:0:b0:5a8:7cb2:15d0 with SMTP id o202-20020a0dccd3000000b005a87cb215d0mr15863400ywd.11.1698244162241; Wed, 25 Oct 2023 07:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698244162; cv=none; d=google.com; s=arc-20160816; b=QOOz8px4wYX+XCoAwH1maMFJKUbJb9N1lLIpvxFoEPQdHSSuZXln22s6Olm7HZyWqF +CeSIoCYlKwHHkG7rURjkHgMkut0AHp1Tpt6fyfXmSXTOXeN1K8xs33faVI3O0kzjDpa kyI2R1mABxx8TmDrnYDPO8i85s87RhYtF5TxkHViRRn0S+wgWcE+avkPLlsdNbdfAdTG +q5qjgaVb3YKa/qXFj/7eQ/QydeKkpePQBZbr2Hc0i6adYK+7IE2BlPkONnX75Te8T1H oqt4ZntbvydCUchuOR5WC5SdaZLKSqYqa4LFhNLDPW2KRWYhEr8NFuGd2X4ZxI6TVW7W JTZQ== 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=XUSdTfqn8Y6vOAWeOIKpr9SYWmvv3aWcNBx6J0LE9AE=; b=nkPqiXLlC+voWBzeqYmJeEgEDm+MFmZQr/TH7a/s2frv0gsYe7aWsmnk8LVEUe1zjv 94g0CxXG/sFhUyn9dnDO8EVyNesI2DBY7cPShLevvXKdMYuTHgP/qGo9f2ta++0CpJ5x zPb+NyLuGJIYWPUv7O6FKPJE4+YYfU9RYCcPRBxdywl6bBWswmjibc2UW3wRrgSeMz+t f4QrfBDZCNP0NqsikjH5uPtwP1lRxyUm3sQZRceHiI7p301MR7nnA7eMNsUDwAOgT+jE 4tzyi2VGZdbtdOhaKBuL9i4sllbXbfHH8CKzNzb0UpN0SckmANC7Qx+aui2naGoH7P39 CRZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=BavMbCpp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n4-20020a0de404000000b005a7a9083005si10932137ywe.244.2023.10.25.07.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=BavMbCpp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 173688145961; Wed, 25 Oct 2023 07:29:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344931AbjJYO3M (ORCPT + 26 others); Wed, 25 Oct 2023 10:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344943AbjJYO2u (ORCPT ); Wed, 25 Oct 2023 10:28:50 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F51A99 for ; Wed, 25 Oct 2023 07:28:48 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6be0277c05bso4686986b3a.0 for ; Wed, 25 Oct 2023 07:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698244128; x=1698848928; 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=BavMbCpphcFIUwz1RVi2TDeIwmJeuAt3HhJZH3vBAq877YqpibcGcwpWFsGDJBQQGI gp3odMjce4EgaoPYz4DWfexUHOewu9FWRSHHFAMJeinPl/L55LCFRK8oY47fmeIBpPGN bCFdWVaSnE4pldMYk0H1DlZB7s1aBApXdAHC6vYcL5Ww5dP+FiNl2IdwJVsOmekDkpOO lXszh6cM//cRWcTI5olxcQCKqS6UWAd+LVNi23ys8DVrOL5Hfz+kBSL1DJPOUVY1JsFO g9ap90ecc3J9Z5lOe4US5CiNgdyki/Z1sQ6k8bSpvtVu2+EzND/SJXXcPR9bdZeq/8me D+Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698244128; x=1698848928; 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=e+BJrFAVjxefQz6ZEIKHMPaCAOLxmZzhEscTJY+Ckvn6ZN1L36FUTczYHAUz+7ec7K 7NaWA4ujLKktWGQ7ROC9Gwv2QkDfZlcPEq5tS45RdQkl2paSykS+IinE8YrxyHlZCMmx dQY6ee4QQgvXB9RsNfGV329FMXnrtqn+heNBNmFvwGrxYd27Zasd2Zx6jxbwF/JwlxeY GrbkqkO3VziQM6PMTbeNNluW1k0ae1F9gYmRbhl4nfJGAWk4kQzvmAH1L2hIZRRp0fj6 lt34RqczftYjS1mvrmnpz6g9PMC2pT9rPaKZLAYCs6jPyx4mJu4eImsJ3N90FnJ0AtjA vmvQ== X-Gm-Message-State: AOJu0YxIHhjLImLykWBEhZVKL2KrjEsjTZqBG0HWHJrEBR9hUJLB30zn 9xz1TLRREW0DiIgecT7YAUUpSw== X-Received: by 2002:a05:6a00:2308:b0:6be:367a:2a71 with SMTP id h8-20020a056a00230800b006be367a2a71mr15594745pfh.16.1698244127853; Wed, 25 Oct 2023 07:28:47 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id g2-20020aa796a2000000b0068ff6d21563sm9817411pfk.148.2023.10.25.07.28.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:28:47 -0700 (PDT) From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand Cc: Conor Dooley , Marc Zyngier , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , 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 2/3] of: property: Add fw_devlink support for msi-parent Date: Wed, 25 Oct 2023 19:58:19 +0530 Message-Id: <20231025142820.390238-3-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231025142820.390238-1-apatel@ventanamicro.com> References: <20231025142820.390238-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:29:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780738070714196504 X-GMAIL-MSGID: 1780738070714196504 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, },