Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5318035rdb; Wed, 13 Dec 2023 05:36:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBTGifSq8BNFgIrUDoWyCYOpsi2t0722HPZal/KBdZty+yoqdCgUMcSaOiXs2N35WDab6l X-Received: by 2002:a05:6a00:14c4:b0:6ce:696f:d0f5 with SMTP id w4-20020a056a0014c400b006ce696fd0f5mr4741734pfu.31.1702474590702; Wed, 13 Dec 2023 05:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702474590; cv=none; d=google.com; s=arc-20160816; b=HSDP1mz5G9EuTRWnoTPz2NvoLUZC5wICmR02BDvMrmEJimK3YjJvbL5afDAQ4uChXa 8CC5NealjIytTKT+s8i9ZRxd7xPVpGS9xjm6CDxVTWSd3m4dPVUQQPfC3RaJEUY32lQ3 v6E7ON7ZuRWulU7o3Sec3uVo7vr4wPIpEG8TjibyD5h1trNA3Sgk9JpoLIG6sLdZq03h T6z1ceZuY+a0SkLCmuq03y3DFhza6MsB+C3/bT0/rOHwo1cSVMFJDZDFRJAvE6Ba/dZo cXkdNaSdA571pK82UiNCd7N8UQTjmrIaJ4gVDE0VL16cinnxGUPuEwHlpKF15h4Qll9o M0zA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=szT2FztWdRUtg+R7DnzhUN4JjxYDvxgODrQuNmjCsMc=; fh=/9Tyz38VnntGGQ1YeS+3EVzGWDgKk72SQKEYWLUKTvc=; b=C/C2TPezJqTaVI/4U3lkOXL2FXw5VW6X3DcBmO+yeNEvQDoVyEgNVSm2A/34rShfux ImPOtzUv8YHtJpkSbRtsR8LNNbsiiq9aZ9eFqKqQetgE51H3l6GBTqga9NNH5bl2TAZK SB9ATw7K/slxPBwZRH62lmhIiR/WUVqGdq/c+KrnBasgzbWjYBXFGmjiHyjw7haTezNk pramIQvlETnX02WTnZQSFU9qcpctXztApY4XH6UFqdw+oKxwbyrcFxiMEI1a1C+h7I19 TYdTG4mnAw9YCNpHFu5Jk1IHjdg46hw9Q5v3OLIqRu0LOUwQm/Mbj/Nvw+Z/go0qjXzJ 2q9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GZBgwDOY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id cm11-20020a056a020a0b00b0058986c61bb6si9823388pgb.706.2023.12.13.05.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 05:36:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GZBgwDOY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2966D81904DE; Wed, 13 Dec 2023 05:36:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379268AbjLMNgG (ORCPT + 99 others); Wed, 13 Dec 2023 08:36:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379264AbjLMNgE (ORCPT ); Wed, 13 Dec 2023 08:36:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC730E8 for ; Wed, 13 Dec 2023 05:36:10 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D310CC433C7; Wed, 13 Dec 2023 13:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702474570; bh=FKo7DMS2ILBjt3i1R1vfFoKi54X0jPj1QGIZxzVw/k4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GZBgwDOY8aC9JG2n44f5T6Xpy/9P4Q5M5cHnhogqs4y2CS4DvUQGX808eF7fk4ALP GYbqznrszsg1NpEWaQMHd7EYaOKMxLBT7eqZZ3VQn9u+GcJVRe7J7lVyfi750iRj3i Qwf0+EBL8vC4qihwH89IRRH/sX++6ahIFlX82UDe45PuYsTJNmHKEn/D9wsbunhRU9 cQoxht6wNut+PD92exEr2w8Yks45e5VlzWOdpS2TvMIEAMAVbEUyDe3nngwobTE5ZE lJX/yi2Xby2mfnwekyiyiKmCaJiVeE2p1iazSM8I0YbWmvFS1drZKWo50b2DRMislR kuIUqGobfSZPA== Message-ID: Date: Wed, 13 Dec 2023 15:36:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/2] interconnect: qcom: Add SM6115 interconnect provider driver Content-Language: en-US To: Rob Herring , Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio References: <20231125-topic-6115icc-v3-0-bd8907b8cfd7@linaro.org> <20231125-topic-6115icc-v3-2-bd8907b8cfd7@linaro.org> From: Georgi Djakov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 05:36:27 -0800 (PST) On 11.12.23 19:55, Rob Herring wrote: > On Wed, Nov 29, 2023 at 8:41 AM Konrad Dybcio wrote: >> >> Add a driver for managing NoC providers on SM6115. >> >> Signed-off-by: Konrad Dybcio >> --- >> drivers/interconnect/qcom/Kconfig | 9 + >> drivers/interconnect/qcom/Makefile | 2 + >> drivers/interconnect/qcom/sm6115.c | 1427 ++++++++++++++++++++++++++++++++++++ >> 3 files changed, 1438 insertions(+) >> >> diff --git a/drivers/interconnect/qcom/Kconfig b/drivers/interconnect/qcom/Kconfig >> index 4d15ce2dab16..697f96c49f6f 100644 >> --- a/drivers/interconnect/qcom/Kconfig >> +++ b/drivers/interconnect/qcom/Kconfig >> @@ -191,6 +191,15 @@ config INTERCONNECT_QCOM_SDX75 >> This is a driver for the Qualcomm Network-on-Chip on sdx75-based >> platforms. >> >> +config INTERCONNECT_QCOM_SM6115 >> + tristate "Qualcomm SM6115 interconnect driver" >> + depends on INTERCONNECT_QCOM >> + depends on QCOM_SMD_RPM >> + select INTERCONNECT_QCOM_SMD_RPM >> + help >> + This is a driver for the Qualcomm Network-on-Chip on sm6115-based >> + platforms. >> + >> config INTERCONNECT_QCOM_SM6350 >> tristate "Qualcomm SM6350 interconnect driver" >> depends on INTERCONNECT_QCOM_RPMH_POSSIBLE >> diff --git a/drivers/interconnect/qcom/Makefile b/drivers/interconnect/qcom/Makefile >> index 3a8a6ef67543..704846165022 100644 >> --- a/drivers/interconnect/qcom/Makefile >> +++ b/drivers/interconnect/qcom/Makefile >> @@ -24,6 +24,7 @@ qnoc-sdm845-objs := sdm845.o >> qnoc-sdx55-objs := sdx55.o >> qnoc-sdx65-objs := sdx65.o >> qnoc-sdx75-objs := sdx75.o >> +qnoc-sm6115-objs := sm6115.o >> qnoc-sm6350-objs := sm6350.o >> qnoc-sm8150-objs := sm8150.o >> qnoc-sm8250-objs := sm8250.o >> @@ -55,6 +56,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_SDM845) += qnoc-sdm845.o >> obj-$(CONFIG_INTERCONNECT_QCOM_SDX55) += qnoc-sdx55.o >> obj-$(CONFIG_INTERCONNECT_QCOM_SDX65) += qnoc-sdx65.o >> obj-$(CONFIG_INTERCONNECT_QCOM_SDX75) += qnoc-sdx75.o >> +obj-$(CONFIG_INTERCONNECT_QCOM_SM6115) += qnoc-sm6115.o >> obj-$(CONFIG_INTERCONNECT_QCOM_SM6350) += qnoc-sm6350.o >> obj-$(CONFIG_INTERCONNECT_QCOM_SM8150) += qnoc-sm8150.o >> obj-$(CONFIG_INTERCONNECT_QCOM_SM8250) += qnoc-sm8250.o >> diff --git a/drivers/interconnect/qcom/sm6115.c b/drivers/interconnect/qcom/sm6115.c >> new file mode 100644 >> index 000000000000..c49a83c87739 >> --- /dev/null >> +++ b/drivers/interconnect/qcom/sm6115.c >> @@ -0,0 +1,1427 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +/* >> + * Copyright (c) 2021, The Linux Foundation. All rights reserved. >> + * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. >> + * Copyright (c) 2023, Linaro Limited >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include > > You probably don't need this header and the implicit includes it makes > are dropped now in linux-next. Please check what you actually need and > make them explicit. > >> +#include > > Also probably not needed. Please double check. > > Rob Yes, these are not needed. But we will need to include mod_devicetable.h for struct of_device_id. Now i notice also that other headers like clk.h io.h and slab.h are not really needed here as well. Konrad, could you please submit a follow-up patch to fix this? Thanks, Georgi