Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4175903rdb; Mon, 11 Dec 2023 10:57:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmZESHbcksYyWl/UadFh/BW4NI8KVlxuTFV5GywagiK/kacHMe51Iql2bDw7Cu2/aBjUpK X-Received: by 2002:a05:6a20:3d06:b0:18f:5f6f:fc69 with SMTP id y6-20020a056a203d0600b0018f5f6ffc69mr2848571pzi.97.1702321029276; Mon, 11 Dec 2023 10:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702321029; cv=none; d=google.com; s=arc-20160816; b=ipLINTEe51BD2ajgXpAT12V2Nw240+Bt2wBj5ASBKasLQESSg08ItspgL1vySGa1S3 k+ir7R+zw8Lo0I7fpwjBv3cW6wG5JfslmO6AnPhAaQwZiyrgMxN8X8QOcgX59N9H6XAK nyo61kyNty1LRnDu3M6I4D7L4JIHKAzM7HfLZxZnKvZTlnwjDzARiDD33pIs/jGV2YRL S17rc4w2qrZ1Ob5oJxfjY3jayDHCmpoZaYjU9F2S7tcg6hYjvqOwGB/sQVy+FTOwX7+e pKC7nx1KiPdAqq1tjqhKKLL6xKxOj70vMfJfIukRGRW4l/T8T04+XlPfvCNCTh9MrfXL Q+cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GuZkm/O/X4+zD8MwPmQuj12NzELsZNOtUkbojoE3/Gg=; fh=XBNdiQSKBYzLV5S+Pa3/w9nGB0wv9uW5oheMpqUWAn0=; b=wF13gH90pYA1QY+4fnd2bgGF7LqajpLaDgV66iNhHMpZ/qGrs58PUapxgYPpQFdVF9 lrApqQFrKzIRI/W0fUETRowEABeuvN7jJqLYf9AqT+1HSztZ5ZG7e5WmFcxaQkNpKjmv qakMgK+2sr0tPmKy3Hki0GINTXDNN+99srEbPYZKjhfNYg/3ChNiPi9xWXhLFd8/49f5 H6vkrXofINNY3fndfVjkWtcVZ0w96P8yar9/PjajmAct28l7g9xoD1eB0KAzFIR+YFfp ek5jM+540r7vi5HQQpXSWG8zaCyGLwp7s56vBTAVb36Fx4D015sA6Y4C5y5v/83bjEAE FTiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wy+XZfm/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y11-20020a62f24b000000b006cb5f680e22si6398574pfl.389.2023.12.11.10.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 10:57:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wy+XZfm/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id B855480A5F9B; Mon, 11 Dec 2023 10:57:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344780AbjLKS4w (ORCPT + 99 others); Mon, 11 Dec 2023 13:56:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345225AbjLKRzp (ORCPT ); Mon, 11 Dec 2023 12:55:45 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 290D7126 for ; Mon, 11 Dec 2023 09:55:51 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCCD5C433CA; Mon, 11 Dec 2023 17:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702317350; bh=TDsZZcW//Yjkn4AZvJmsYsqi1Yqt03hg0vEJ8F1Khno=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Wy+XZfm/xBwdGjaMO0iafORqU7AYUAKBrpmfPhZnS63W2LD+9lIUmmY85M7iDotZV RUUIwg0POXN4Tkdavv6UXUiOqqIzFni8VQZhDxQXeupY9UVawI9v08XKg2gq0caO+p bb/oY/p81QaSRDsWLnEdSbbaXi5FUQWA3fN2rcUuikHcWh1dLUY3aINV97NKCubO1y l1tEo9YR5UB1hVIpFdg/ivykxGAYb0eRvemLSdGk5XfxND1zVPvoEgRkS3FVf/9l7S zVh3HSiOyx1yr1oE8BoiPzfD3sQ8wFq0jjsCHcAeefrs846eDBoTAiVYXqLGpWcnwo b9f2qqc7TPtxw== Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-50bdec453c8so5633504e87.3; Mon, 11 Dec 2023 09:55:50 -0800 (PST) X-Gm-Message-State: AOJu0YyLwFCyWuctzlW9fzX+J6DSrjCi45cu081ACeOFixmvpNgPC2AV KKcTdsOTobn3vI5bNHtGG82xlRREQ9jGiF+fcA== X-Received: by 2002:a05:6512:2242:b0:50b:f812:b313 with SMTP id i2-20020a056512224200b0050bf812b313mr2431265lfu.77.1702317348971; Mon, 11 Dec 2023 09:55:48 -0800 (PST) MIME-Version: 1.0 References: <20231125-topic-6115icc-v3-0-bd8907b8cfd7@linaro.org> <20231125-topic-6115icc-v3-2-bd8907b8cfd7@linaro.org> In-Reply-To: <20231125-topic-6115icc-v3-2-bd8907b8cfd7@linaro.org> From: Rob Herring Date: Mon, 11 Dec 2023 11:55:36 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] interconnect: qcom: Add SM6115 interconnect provider driver To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Georgi Djakov , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 10:57:07 -0800 (PST) On Wed, Nov 29, 2023 at 8:41=E2=80=AFAM 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/qco= m/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-base= d > 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-bas= ed > + 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/qc= om/Makefile > index 3a8a6ef67543..704846165022 100644 > --- a/drivers/interconnect/qcom/Makefile > +++ b/drivers/interconnect/qcom/Makefile > @@ -24,6 +24,7 @@ qnoc-sdm845-objs :=3D sdm845.o > qnoc-sdx55-objs :=3D sdx55.o > qnoc-sdx65-objs :=3D sdx65.o > qnoc-sdx75-objs :=3D sdx75.o > +qnoc-sm6115-objs :=3D sm6115.o > qnoc-sm6350-objs :=3D sm6350.o > qnoc-sm8150-objs :=3D sm8150.o > qnoc-sm8250-objs :=3D sm8250.o > @@ -55,6 +56,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_SDM845) +=3D qnoc-sdm845= .o > obj-$(CONFIG_INTERCONNECT_QCOM_SDX55) +=3D qnoc-sdx55.o > obj-$(CONFIG_INTERCONNECT_QCOM_SDX65) +=3D qnoc-sdx65.o > obj-$(CONFIG_INTERCONNECT_QCOM_SDX75) +=3D qnoc-sdx75.o > +obj-$(CONFIG_INTERCONNECT_QCOM_SM6115) +=3D qnoc-sm6115.o > obj-$(CONFIG_INTERCONNECT_QCOM_SM6350) +=3D qnoc-sm6350.o > obj-$(CONFIG_INTERCONNECT_QCOM_SM8150) +=3D qnoc-sm8150.o > obj-$(CONFIG_INTERCONNECT_QCOM_SM8250) +=3D qnoc-sm8250.o > diff --git a/drivers/interconnect/qcom/sm6115.c b/drivers/interconnect/qc= om/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 reser= ved. > + * 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