Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2937797rwb; Sun, 20 Nov 2022 04:38:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4gLmeUmgJYeBM1qeDpUA/vGpvvIedLbXPaAiMeyEZ9M96q/1E5EzkcS92BErr/xM/68Q9k X-Received: by 2002:a17:906:3708:b0:7ad:93df:db1e with SMTP id d8-20020a170906370800b007ad93dfdb1emr12144140ejc.445.1668947922741; Sun, 20 Nov 2022 04:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668947922; cv=none; d=google.com; s=arc-20160816; b=d5YxFpd9MZkIRoo/kSALMhsYaj6Hqmz/aJHy7N8zMhVHXyqgJxS1NBqvvi1FRvlkZ6 34ZfUoQAip02AIDCn3m43CJkoTfNMNbdn98w8nccgnzWbDtO+2HjMP+pOWN1Wb0DLDqC npHpIZCh9+POaHfb51Kf1Rk4zhUW8m7p5KyEwWJ2f6ErDbOgwmJ+uoG5t8zPnhMUNpFp +yzNv8XuHmuCg8NuTCNYvAdDc7zsgSjdW5nfjceXYQag/dYDb6SS04Ayag7iM8ZzSdJk OLsIRaCWC62QNT7biHJWgEJpI9wVj0/IvQL4d+NI0V5mzGM6YEsRuqd0F3FBeCVXLBFY IwNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=7XGftgV+T7Lhi98emd7iEW6U8q+Ec6IBKEA0CquQ5qk=; b=eaIbVZNvZqbAchNZCFI2nJWwHfM73HVihawym/Uxjq+SEIYt+vgARbpH14fFEc2QD6 uB9HwqQ3v9HOnb1Yuq3q4Ce6CN1Yy+1Hntw9iD8GNP687kH//QpKpmb2/B15gkZXwhDa JFR3Xgs+0laX2kao0sGsMPPo+1TDm4jCRoaANZdWKGfvm33xPjdoPN8VPXvApsuUtL+f 6AI6FpB/F4L4knqSCy+F6TMQgCTmOsYQnpVg7d6qKNVeXLAu4JVRYuinkScf0ZuBquYM nF0TnMCAYkCwfCg/dtEIDDJXwV1vsAN+bmAubEdc+yrVHQ+cQxL67ew9SWUtc7eJcbNu qbqA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a05640240ce00b004599ae68f98si7468017edb.136.2022.11.20.04.38.10; Sun, 20 Nov 2022 04:38:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbiKTMTx (ORCPT + 92 others); Sun, 20 Nov 2022 07:19:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbiKTMTo (ORCPT ); Sun, 20 Nov 2022 07:19:44 -0500 Received: from smtp.smtpout.orange.fr (smtp-19.smtpout.orange.fr [80.12.242.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A08FE3C6F7 for ; Sun, 20 Nov 2022 04:19:42 -0800 (PST) Received: from [192.168.1.18] ([86.243.100.34]) by smtp.orange.fr with ESMTPA id wjIPoqSZxFUJ3wjIPoqDBa; Sun, 20 Nov 2022 13:19:39 +0100 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 20 Nov 2022 13:19:39 +0100 X-ME-IP: 86.243.100.34 Message-ID: <6b68b7c2-e070-0a88-35ee-2060dcbdee91@wanadoo.fr> Date: Sun, 20 Nov 2022 13:19:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v4 3/3] interconnect: qcom: Add QDU1000/QRU1000 interconnect driver To: Melody Olvera , Andy Gross , Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski Cc: Odelu Kukatla , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221118182245.31035-1-quic_molvera@quicinc.com> <20221118182245.31035-4-quic_molvera@quicinc.com> Content-Language: fr From: Christophe JAILLET In-Reply-To: <20221118182245.31035-4-quic_molvera@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Le 18/11/2022 à 19:22, Melody Olvera a écrit : > Add interconnect provider driver for Qualcomm QDU1000 and QRU1000 > platforms. > > Signed-off-by: Melody Olvera > --- > drivers/interconnect/qcom/Kconfig | 9 + > drivers/interconnect/qcom/Makefile | 2 + > drivers/interconnect/qcom/qdu1000.c | 1079 +++++++++++++++++++++++++++ > drivers/interconnect/qcom/qdu1000.h | 95 +++ > 4 files changed, 1185 insertions(+) > create mode 100644 drivers/interconnect/qcom/qdu1000.c > create mode 100644 drivers/interconnect/qcom/qdu1000.h > [...] > +static int qnoc_probe(struct platform_device *pdev) > +{ > + int ret; > + > + ret = qcom_icc_rpmh_probe(pdev); > + if (ret) > + dev_err(&pdev->dev, "failed to register ICC provider\n"); > + > + return ret; > +} > + > +static int qnoc_remove(struct platform_device *pdev) > +{ > + struct qcom_icc_provider *qp = platform_get_drvdata(pdev); > + > + icc_nodes_remove(&qp->provider); > + icc_provider_del(&qp->provider); qcom_icc_rpmh_remove()? (more future proof, less verbose and more consistent with qcom_icc_rpmh_probe() in the probe) CJ > + > + return 0; > +} > + > +static const struct of_device_id qnoc_of_match[] = { > + { .compatible = "qcom,qdu1000-clk-virt", > + .data = &qdu1000_clk_virt > + }, > + { .compatible = "qcom,qdu1000-gem-noc", > + .data = &qdu1000_gem_noc > + }, > + { .compatible = "qcom,qdu1000-mc-virt", > + .data = &qdu1000_mc_virt > + }, > + { .compatible = "qcom,qdu1000-system-noc", > + .data = &qdu1000_system_noc > + }, > + { } > +}; > +MODULE_DEVICE_TABLE(of, qnoc_of_match); > + > +static struct platform_driver qnoc_driver = { > + .probe = qnoc_probe, > + .remove = qnoc_remove, > + .driver = { > + .name = "qnoc-qdu1000", > + .of_match_table = qnoc_of_match, > + }, > +}; [...]