Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1415241pxu; Fri, 16 Oct 2020 11:19:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6k/IGTAcurwRVMez5tind6nX2x6tKWVwcpu3HVHAVfgwBb/jZnCvey7YcXLM2lxXtxbce X-Received: by 2002:a17:906:8401:: with SMTP id n1mr4911932ejx.215.1602872367174; Fri, 16 Oct 2020 11:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602872367; cv=none; d=google.com; s=arc-20160816; b=VU0A1wEYgenAl31g4bR80InMF3iDe94jsAJvzZYKfkjlg8az6xGKS/XG0evMf0t7fC TAOTKgeoP+Ed0xaMXbRdhxGhl0hkK9BzZi6IuJG27VUThLVPMhnOQiYSEn+myVP6iQel t6XHkT7h10UYvuhA6U3/g8cgJrKHtCppYGI8d4t/puw++MvIqJAUbmA8Y9zj+8oLRyAn n4uYotQh5EghfJ+ERj/rlcRlBTCr2Zu7AskfLakgUlFf9uB8BvHUN+NR4mXhNKgBUa5+ 3tKVkK1pfgNZOIEch54H80TBveGQkQ1RCp5zu4rmbkq7ib2OU46gBevX8+jLSPOvIQuM FN4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lXUFwXy4CvWitPRBtcqz4P6w54dAmXcel3/G3PMWxJk=; b=j3dKCxOIhy2J1Yz+Py8oq76zA7xz8r0N+dDaYGwK68mVzoo24Jbh4QnogFNFlwFw2Y zDgMlX5kLWrxka+TiFxRfVcFjkkM+22+4EfLF1DKimKXr8fYxTo5doFjXyGGQxL/naaE I3ycvkfhQyTSw85vJzDWuYKHwI/U/w2pJ9j2hzZ24zDyRc/gWcQ+v2wMTrY7UScLZPnZ 1cvt1u5FE/7kb7vYeUpwPb5MSeOP5tvkJnE8u0iwoWqUPSlOqWPi5Pvm123/5SDKZUQe t0DvoSKuHwZY2/ZlbjRTYkAEVcJvHyfu8HgzTyCh88kPTr/UTx51eG/pQmnLaEf71uUN Wzwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W5g+DZ0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp13si2144909ejc.122.2020.10.16.11.19.02; Fri, 16 Oct 2020 11:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W5g+DZ0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391498AbgJPSQs (ORCPT + 99 others); Fri, 16 Oct 2020 14:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391493AbgJPSQr (ORCPT ); Fri, 16 Oct 2020 14:16:47 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45900C0613D3 for ; Fri, 16 Oct 2020 11:16:47 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id m22so3264079ots.4 for ; Fri, 16 Oct 2020 11:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lXUFwXy4CvWitPRBtcqz4P6w54dAmXcel3/G3PMWxJk=; b=W5g+DZ0Y+oLih8JHD8yavPz/uC0IhD0zJoUh59V8GVOd6SaaZhHBMLTt5ePflQ91pd /1kUpypg2gwGTndoH0SOMQ4qGBOfD1mSG1DMPuGMWpbezFoZsdHnDTHT/Upbey6/L7Kz 3GbgLp8aWQrW9HWuXCtjyFqQLxE89a5b7wnqwGUQYZLS+4Jh5eLuKFL8LKEBgTyCo33S U3YHhKl8uN7kEOqUvYujVmRpHlbqNeh6F5yC2ElknhcZQYLtsmAaIwLgKodysE0Y41X3 0qolVLm8P4JKYAIGBsu92Ii6hNPuaG9/tQM1oo7Wn8aGOXh9DQEX2sR00NElZLhkt2Nv BY7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lXUFwXy4CvWitPRBtcqz4P6w54dAmXcel3/G3PMWxJk=; b=s1BavhvjVK8ALm6ESoG0epepLJRlANFIV9ShtoK/pM3pdXt2wIKatxvl7MpNzbdOFs 8MO+rM9H/6V4ezV/b319/7T83dpk20yT0GLyZl/WD8R6ndf8Kt5G9uf0YFIowoP7I1+i 9zL3Trg+Gh+gl4Yxu27aM7GV+zsCTxTpQ9iz5Vzrnl6oTy1wb8pDHpDNnFXBC8J+ZKJF V2paTFe6KRkB0jH+TQZApGphpyvpWagQAufsa2J1ZySrQcVX7Hk2OSJdjHK3kQB5Ikug Tu/gBqME0YU9h98GgS1P2Eqo4cziWM54MoSMr99OvQ6UdEv08KyW3NouwJEWrlngICY0 04hg== X-Gm-Message-State: AOAM531bMB9expeVc2DJLjWYpe3F+yVHXsqO0laJ8i/Pc+XoVM4Z9lB3 +uGXLOYss9/l33y2FaLdqw6mGA== X-Received: by 2002:a9d:7315:: with SMTP id e21mr3387087otk.372.1602872206412; Fri, 16 Oct 2020 11:16:46 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id e30sm1173034otf.49.2020.10.16.11.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 11:16:45 -0700 (PDT) Date: Fri, 16 Oct 2020 13:11:35 -0500 From: Bjorn Andersson To: Ulf Hansson Cc: "Rafael J . Wysocki" , Nishanth Menon , linux-pm@vger.kernel.org, Aaro Koskinen , Tony Lindgren , Andy Gross , Niklas Cassel , Heiko Stuebner , Kevin Hilman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 1/4] power: avs: qcom-cpr: Move the driver to the qcom specific drivers Message-ID: <20201016181135.GB6705@builder.lan> References: <20201006160516.319830-1-ulf.hansson@linaro.org> <20201006160516.319830-2-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201006160516.319830-2-ulf.hansson@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 06 Oct 11:05 CDT 2020, Ulf Hansson wrote: > The avs drivers are all SoC specific drivers that doesn't share any code. > Instead they are located in a directory, mostly to keep similar > functionality together. From a maintenance point of view, it makes better > sense to collect SoC specific drivers like these, into the SoC specific > directories. > > Therefore, let's move the qcom-cpr driver to the qcom directory. > > Cc: Niklas Cassel > Cc: Bjorn Andersson > Cc: Andy Gross > Cc: linux-arm-msm@vger.kernel.org > Signed-off-by: Ulf Hansson Acked-by: Bjorn Andersson Regards, Bjorn > --- > MAINTAINERS | 2 +- > drivers/power/avs/Kconfig | 16 ---------------- > drivers/power/avs/Makefile | 1 - > drivers/soc/qcom/Kconfig | 16 ++++++++++++++++ > drivers/soc/qcom/Makefile | 1 + > drivers/{power/avs/qcom-cpr.c => soc/qcom/cpr.c} | 0 > 6 files changed, 18 insertions(+), 18 deletions(-) > rename drivers/{power/avs/qcom-cpr.c => soc/qcom/cpr.c} (100%) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 4f1a56f6efaa..f51dd1944fe6 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14337,7 +14337,7 @@ L: linux-pm@vger.kernel.org > L: linux-arm-msm@vger.kernel.org > S: Maintained > F: Documentation/devicetree/bindings/power/avs/qcom,cpr.txt > -F: drivers/power/avs/qcom-cpr.c > +F: drivers/soc/qcom/cpr.c > > QUALCOMM CPUFREQ DRIVER MSM8996/APQ8096 > M: Ilia Lin > diff --git a/drivers/power/avs/Kconfig b/drivers/power/avs/Kconfig > index cdb4237bfd02..089b6244b716 100644 > --- a/drivers/power/avs/Kconfig > +++ b/drivers/power/avs/Kconfig > @@ -12,22 +12,6 @@ menuconfig POWER_AVS > > Say Y here to enable Adaptive Voltage Scaling class support. > > -config QCOM_CPR > - tristate "QCOM Core Power Reduction (CPR) support" > - depends on POWER_AVS && HAS_IOMEM > - select PM_OPP > - select REGMAP > - help > - Say Y here to enable support for the CPR hardware found on Qualcomm > - SoCs like QCS404. > - > - This driver populates CPU OPPs tables and makes adjustments to the > - tables based on feedback from the CPR hardware. If you want to do > - CPUfrequency scaling say Y here. > - > - To compile this driver as a module, choose M here: the module will > - be called qcom-cpr > - > config ROCKCHIP_IODOMAIN > tristate "Rockchip IO domain support" > depends on POWER_AVS && ARCH_ROCKCHIP && OF > diff --git a/drivers/power/avs/Makefile b/drivers/power/avs/Makefile > index 9007d05853e2..a1b8cd453f19 100644 > --- a/drivers/power/avs/Makefile > +++ b/drivers/power/avs/Makefile > @@ -1,4 +1,3 @@ > # SPDX-License-Identifier: GPL-2.0-only > obj-$(CONFIG_POWER_AVS_OMAP) += smartreflex.o > -obj-$(CONFIG_QCOM_CPR) += qcom-cpr.o > obj-$(CONFIG_ROCKCHIP_IODOMAIN) += rockchip-io-domain.o > diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig > index 3dc3e3d61ea3..6a3b69b43ad5 100644 > --- a/drivers/soc/qcom/Kconfig > +++ b/drivers/soc/qcom/Kconfig > @@ -26,6 +26,22 @@ config QCOM_COMMAND_DB > resource on a RPM-hardened platform must use this database to get > SoC specific identifier and information for the shared resources. > > +config QCOM_CPR > + tristate "QCOM Core Power Reduction (CPR) support" > + depends on ARCH_QCOM && HAS_IOMEM > + select PM_OPP > + select REGMAP > + help > + Say Y here to enable support for the CPR hardware found on Qualcomm > + SoCs like QCS404. > + > + This driver populates CPU OPPs tables and makes adjustments to the > + tables based on feedback from the CPR hardware. If you want to do > + CPUfrequency scaling say Y here. > + > + To compile this driver as a module, choose M here: the module will > + be called qcom-cpr > + > config QCOM_GENI_SE > tristate "QCOM GENI Serial Engine Driver" > depends on ARCH_QCOM || COMPILE_TEST > diff --git a/drivers/soc/qcom/Makefile b/drivers/soc/qcom/Makefile > index 93392d9dc7f7..ad675a6593d0 100644 > --- a/drivers/soc/qcom/Makefile > +++ b/drivers/soc/qcom/Makefile > @@ -3,6 +3,7 @@ CFLAGS_rpmh-rsc.o := -I$(src) > obj-$(CONFIG_QCOM_AOSS_QMP) += qcom_aoss.o > obj-$(CONFIG_QCOM_GENI_SE) += qcom-geni-se.o > obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o > +obj-$(CONFIG_QCOM_CPR) += cpr.o > obj-$(CONFIG_QCOM_GSBI) += qcom_gsbi.o > obj-$(CONFIG_QCOM_MDT_LOADER) += mdt_loader.o > obj-$(CONFIG_QCOM_OCMEM) += ocmem.o > diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/soc/qcom/cpr.c > similarity index 100% > rename from drivers/power/avs/qcom-cpr.c > rename to drivers/soc/qcom/cpr.c > -- > 2.25.1 >