Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp854809pxb; Fri, 22 Apr 2022 12:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyQV7biqQEgs1W5uwSESZBM5Ze2SuLlhV0TLOU5NcquVxw19+GTgitU6DKMOD9VfpHIjd4 X-Received: by 2002:a17:903:40c6:b0:15a:8355:3c3b with SMTP id t6-20020a17090340c600b0015a83553c3bmr6279452pld.9.1650656490045; Fri, 22 Apr 2022 12:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650656490; cv=none; d=google.com; s=arc-20160816; b=ofYn/8zu952SneX/D/Ci2tAWw3/y+QPQ9AgRUnv7IjOdLXAGXOMZoDYn/XBEmcuGlo yM0hSnwqt27hUibsm87M2VE5eeHHglvzgPbd/Bo0yXNvKl4vbNCKW4EkOUjLP9RM3vJE ENKyvpcO2V5QavJgFuvjhT0rk5eXpmrk9EWdbx0KUlC+3R2TsaClhXOb6GkF+a07w+K8 z6iXiCv4hahAjNW1OCkZQxjh8zeDWZny0WMhlxAV24q/Ok+4WPKA5hE6x9j8e/dPlmnd nWmnZognR1/KUm1YiaRBZlYMQHARXaM6uJXWMCcISjC6El6Z8CAAnD5r2Dv8sFPqFwKI +9kw== 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=SZH17+D0t2zqbZK25ia8E/vbcvVxSVisKGqZZiYiy3Y=; b=TfQ/6x0pgQpTaSEu5r5lOBf2a1DgyZ6u2o+nKD1RM5i32FAvRrQld/TS+c9gfF7dzz hzODzuqoZrh7UZ/KKwR9AAd4pkSyfWTR+rYs6lRzFugTb59pjSK9r8YlxLHtn/WdCcOS 0JGqW4Ew51GfStRNQHJhxz2xrpSWoqVAlGFfdU+R09zWjDW6x0Gh8Ch3tlRyPfGAkmvk v8Ow6lIrr+qZhA2eE7HTHV7bWfXY4wryv1t3xU9b8/Nr/4JY1oDCInJeBqcsUHLrlBUA fXN4KTZBx3iZWmi/3r5A18/kTjj+NdrwBG/WGRRKmD2Bdo/ogWQNkKjwm2ijxE91XI7L Or8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=t7ZJ5sD+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w29-20020a63935d000000b003aae4ef89d8si773409pgm.713.2022.04.22.12.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:41:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=t7ZJ5sD+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1212216D2D3; Fri, 22 Apr 2022 11:46:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448788AbiDVOpD (ORCPT + 99 others); Fri, 22 Apr 2022 10:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448793AbiDVOo7 (ORCPT ); Fri, 22 Apr 2022 10:44:59 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2DF35BE5F for ; Fri, 22 Apr 2022 07:42:04 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id g18so16772945ejc.10 for ; Fri, 22 Apr 2022 07:42:04 -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=SZH17+D0t2zqbZK25ia8E/vbcvVxSVisKGqZZiYiy3Y=; b=t7ZJ5sD+hosvP7Z0zkxC6igVDmEzoREgFv7c8a96t2R2Pw8ht6Wue8oi304pjUq+/4 coZQoUceEbITGW75EcXyCOu+xuJ3bIOWIcrZI4V1XOhdI47VwIFK31XffomLWW2yfMCz v3RaXM50m6uQwuXZLbKYzQiC5SM85vN6JCAtkqfSmfkGA4OyuRLMrHsovn8ilkm+Cemi aCyfopvis1m1wy6xEmvQUMnDezCpgbydwjctt05f+tWMqjltseg3fvhv4qH/qhMUVh9x QCoG4aWZrMyf/wuqoDrox++vOCaiuibZQxe5HXh42bcSfxYmNDfW3+aI3VWqgZ5oAowH Ah+g== 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=SZH17+D0t2zqbZK25ia8E/vbcvVxSVisKGqZZiYiy3Y=; b=v6zSlJ5nyrQxA9kFMr//CE9+PHIOpZdKhNqHg/X7ndWTJtYwdeCB4bBGHUkZ9y1qnC /ky9r+boEV88uxu4na4x8uvQQKEnOiiqTxM+luosGlWBVJrw2OvqcQdbpwyNrTopbMm+ 2Tz1VPHQdC7YV59P11nHct2THOdleVadLUiT+bmFWhsRWOw9/B8nWhexVNHJLaCPBo/w 43F/Pk1d1yM+kJ2NAQl97atObhb8THB1I/jsWJGRsn07RglG0N3IrMEjGID+0JuJEOeW d5dqknaONG58MVe3CYo9X23ce20sYGSmgnVpZ1y3MhTQ7MZ3I0upqF/EjbVkv1H+oAt9 /lPg== X-Gm-Message-State: AOAM530ZeqinQM4OrFyeSFLZpzkmXapAgG8zLszoEb0kUyPHqKljLEdh kzTqkEqnnknnChPtM1tEsB3UUg== X-Received: by 2002:a17:907:968f:b0:6db:a3c5:ae3e with SMTP id hd15-20020a170907968f00b006dba3c5ae3emr4637496ejc.770.1650638523597; Fri, 22 Apr 2022 07:42:03 -0700 (PDT) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id u6-20020a17090626c600b006e74ef7f092sm818202ejc.176.2022.04.22.07.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 07:42:03 -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 1/4] interconnect: qcom: icc-rpmh: Support child NoC device probe Date: Fri, 22 Apr 2022 16:40:17 +0200 Message-Id: <20220422144021.232993-2-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220422144021.232993-1-luca.weiss@fairphone.com> References: <20220422144021.232993-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 --- 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 2c8e12549804..a2a8b3b9ba56 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.0