Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp677999ioo; Thu, 26 May 2022 12:01:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWWVAaYrd5BsCs6T0j3DZQZjgOkJntvV/23l8/lQ6UOpURVggLoefEOM5nWO4MC7HkT3L/ X-Received: by 2002:a50:fb14:0:b0:42b:dc68:7768 with SMTP id d20-20020a50fb14000000b0042bdc687768mr4267018edq.221.1653591717469; Thu, 26 May 2022 12:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653591717; cv=none; d=google.com; s=arc-20160816; b=asOeOzzgdnbof+cY5K543clWrb03CpmS+7qj+aIUiEE7hOn85CT4fbefBcKakHTcGy rpXSfDpobE+JAm2OBocc6EwUFK9ouEwKmE5dM0FkTfapfchSAy9ASBBndjhEFLd4fhHN iOvISn5I7zVh7Nd9ryPUMVOTGXRR32K/IX9LVOQbQxpKvFFi/ae/fqAqkcZAU48AAZ8J JbmcEtfMDT+0RaA8LtzBN78bKlj/715W4zVJso5rZN7zp9Hzx4xvaQ2I/B3VbG1c8YMl 96Od9K67iLSm0LMifbo6zBZwc+9Thjhct/gjFN8XV560A98Toc/97ymw7inNapIFjFTc YBsw== 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=Dz8k/q3qNgJQm6RsF9qqwy1eYL+8jWltLYwZ1PVLuPA=; b=0whlOJX9cpA6SnuaRuVOmy2V9ng9GKwlUUICCX7x28SuXm4ewzHl5Hd+zFgdV6T86t QRWHsVfYOpc4BNNmjvueYQBZHsZ3MyvYSPBaEO9H/IoE4aNVilJbzaIcHH8OllHfyjqn AOjF18sTcpLyeD2GzDdUssJcfvcw3G1GDh76t+hLxboDQxG37Fnc+Ek0ggHiNvrXLsmq AC9m4TWF0nDH9hLLiCF09Q6bWnwA5KLM52rkGB4W/oaHxBuJrS2TmWbmB0bgPTEhIzvf +qRoOs4dc0vw3WP/qGIoytnrJOsEVOHdaQqLXTvlfP2HZBXDCREnTEigU7l+HWsWeVtR Q4rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=2asdXCyd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a05640240d300b0042ad03b5aacsi2821582edb.5.2022.05.26.12.01.21; Thu, 26 May 2022 12:01:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=2asdXCyd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244889AbiEYOoo (ORCPT + 99 others); Wed, 25 May 2022 10:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244814AbiEYOog (ORCPT ); Wed, 25 May 2022 10:44:36 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 948D8A88A8 for ; Wed, 25 May 2022 07:44:34 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id n10so42159543ejk.5 for ; Wed, 25 May 2022 07:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Dz8k/q3qNgJQm6RsF9qqwy1eYL+8jWltLYwZ1PVLuPA=; b=2asdXCydJTTYXHRkflm7Dec8iSPX+B9DWvAl1Jp5IfjsUQGS9dq+Rz+e90eS8F8UEm zrqgZyKqjsSUsUy2e8sn5ZU3/FJ+aQ8FoUzEtv2rL4tbWZLijZKbjr938x9ntIW0t4tS 8OwcThbBUHYVE6m7oTxn6SuhoHgcRN17rIsK+ImMmY49VWO8JYs1zReObvpZjkYCMHp8 qd+7XOnYEuIDSxKdGX3nxrPhZhW0hhutCgF8UJ5NBYnyrZSQKFWpcxXe4cZID032SY46 hfAXZGYXp7LBUaWBOCZagTxuMinNcDAHY2EZxCaLTMIRrW31ZsV1EbNIWHy2/Z7AtyLR 4OEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dz8k/q3qNgJQm6RsF9qqwy1eYL+8jWltLYwZ1PVLuPA=; b=GrQ0DxtUkuvtyK0DpymrRlDeocTvGr9HmKTBrPbiQpXFyy73KC9Pv4FdfjvmOTwxbZ 32UCsiRa8HuEhpoEYVr3yJGkbvTKyWcVoiqBD1Amw0f0qWIp+O9+SH5clypMYJTRcXYY Dz5MjVfRAvIxDTQdL6RW4q3InlvPypG0F7BIetOBB4MYuZuly2W283zCO1ppXLQR4vND /GNUpbRRv/7WYoIHEy2gEz43wNkqP3YhZS/wAzRsZcQun9kOhBTdT+7Tu6keWOtMei3P vIvBacivCRiQBvPvo21isB89d7x5aUm2mjYOb6Os9vJPQyowTrS78LKhHPVvD84EGEmg l6Mw== X-Gm-Message-State: AOAM533gRaqtf92NFkIFxBVRCQmBjNIBbd8g6Ruav9iX5enmCsKZdGwD Z2RN/QcVUjkUzrfOXriEMlQwjg== X-Received: by 2002:a17:907:7f16:b0:6fe:dcc0:3b23 with SMTP id qf22-20020a1709077f1600b006fedcc03b23mr14793607ejc.478.1653489873200; Wed, 25 May 2022 07:44:33 -0700 (PDT) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id r2-20020a170906550200b006f3ef214de1sm8159596ejp.71.2022.05.25.07.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 07:44:32 -0700 (PDT) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Georgi Djakov , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/5] interconnect: qcom: icc-rpmh: Support child NoC device probe Date: Wed, 25 May 2022 16:43:57 +0200 Message-Id: <20220525144404.200390-2-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220525144404.200390-1-luca.weiss@fairphone.com> References: <20220525144404.200390-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 As per e39bf2972c6e ("interconnect: icc-rpm: Support child NoC device probe") also update the rpmh interconnect driver to support probing NoCs that are modelled as child devices of a different NoC. As the driver doesn't yet use the 'reg' property, no change is done for that. Downstream DT reference: https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/tags/android-11.0.0_r0.56/qcom/lagoon-bus.dtsi Signed-off-by: Luca Weiss --- Changes since v2: * none drivers/interconnect/qcom/icc-rpmh.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/interconnect/qcom/icc-rpmh.c b/drivers/interconnect/qcom/icc-rpmh.c index 3c40076eb5fb..8acc8e67a332 100644 --- a/drivers/interconnect/qcom/icc-rpmh.c +++ b/drivers/interconnect/qcom/icc-rpmh.c @@ -258,6 +258,10 @@ int qcom_icc_rpmh_probe(struct platform_device *pdev) data->num_nodes = num_nodes; platform_set_drvdata(pdev, qp); + /* Populate child NoC devices if any */ + if (of_get_child_count(dev->of_node) > 0) + return of_platform_populate(dev->of_node, NULL, NULL, dev); + return 0; err: icc_nodes_remove(provider); -- 2.36.1