Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp403634pxu; Tue, 6 Oct 2020 09:07:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2Grt1iY69+uJ9GMP5zNTtDa1kc7TQ6WFuYSRBdu1rSyXn/n13XFN7yYlQezwKBzG5wLKJ X-Received: by 2002:a17:906:a848:: with SMTP id dx8mr201802ejb.552.1602000423416; Tue, 06 Oct 2020 09:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602000423; cv=none; d=google.com; s=arc-20160816; b=0ldmZ1ghFMkJJtKVQD6UhdTWhWxDdr18toIyvsALtlTyZe/xeaBHJCzfQo/cjlWIhz Koeg0B3CLgPkNwnN6l2cSFp2YLeNWJQUi5JOrYJ3/jKSo/swtS4vg9FInvlHgnpHkg6P keRjN8kTlr59PVm6xI95rCDigUwn1Sw6Efd3N3Y9tn7ifdGTu7GR8mPJ6MVI09Y/fXjw G0nqHG+WZq60aPp1G792WAbRyhQJjiArgGu4YhGPBGEOgxNToWGTqNkvKTDpQsL8WFHo IUBJjQ35NrBzr+KPZqSMsh6Wk5ru636rka2DOFes3k4xNK1BseKn/LbbZ3nKkEIItiky hSDQ== 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=OwoCSmfxLGjvt1o0N+0EiCnK4lbyycGM//QYdUZDGlU=; b=PvyVFRiogdu2Lpyiy2YmgHxeWW4RbfjLRVMoAIOy6UdhSgYY2ywkC6LqOT3ZpZw9N4 8vcaTapItlyonT/ymOA63y22K0kgS/adcRiFsNg1cJVxLqiVI4P+9sNZNln+TbY47NLe SVikFBtr1qAmAuxRfj/DVWr38hJzH3vNj4eQCWcTyRvxeJYFsSRdKfIQ36r4h5Mx/WNY IUo5TxhzkwNlUdKeFgmc+CVPYLUU0N92xhoeYYfUKRqu4EvwkCbtQpy1oFjwbHGEYnk4 PY/r4ruj6vPeaIX00mFoMuoDSo35x+gBKTK8nhYwqk4+rlCCQDpOQvW0ula2M86dn3cz iG1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oTF8UsYm; 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 y22si2673841edt.51.2020.10.06.09.06.36; Tue, 06 Oct 2020 09:07:03 -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=oTF8UsYm; 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 S1726197AbgJFQFb (ORCPT + 99 others); Tue, 6 Oct 2020 12:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgJFQFa (ORCPT ); Tue, 6 Oct 2020 12:05:30 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46240C0613D2 for ; Tue, 6 Oct 2020 09:05:30 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id a15so11504633ljk.2 for ; Tue, 06 Oct 2020 09:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OwoCSmfxLGjvt1o0N+0EiCnK4lbyycGM//QYdUZDGlU=; b=oTF8UsYmfg+TFpK0V8akH8qv2XJgpNyqWeUQHdVUXkNtf132IjWE4EF5DiVDrzjuKC ha5LTVMufN2CjeKbR816/JtDpe6AQ6z66HjBxvLrQxYONwiJypn2wlIG6dTxI50APNk5 0rqmDQEcmwTWZyYDrJRFNKSFX9dZHt5xXxwNEN+QmJH7GgdzGStfeGMIpEuanZNwINGb e+3GMnQoyLbFn70Wg3zpnIOVPbrcxJr1NjzjqJVFakMNwRJGRhTruq6R/VSqg+FAViJ1 opKd4lFS63d6n5FrmRvd9a6GDlwAeyvdxbXZb/8QrHLa/4nqRBVnNL7urnUg0h/Gc0DD nLCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OwoCSmfxLGjvt1o0N+0EiCnK4lbyycGM//QYdUZDGlU=; b=iMkNAq5ZRmw/jm1J7FwiuhxjSHd+LAyv8e2/XusxCsZK+CFCMDJSyITsSoZvvzv/5U 6AONfX3SnKmTpQ3m3Rsrf3wSFXNmYj9juvaTfSWmDafrUpqD8ZF1BWD+FP7pGL/xXXmh KNxN+kZ/TIj+h6XpwwHkjj9gijyH7jpiAWCfX59h0Xwc3S9/mtYQJUBWLGVxbLqf4vvp /8etQNGlRwbFSUEgWL33QB3o7Ye7jOGHkUHqs/sG6r283Khvb63F5CDhvhXXrs1cxn3L m/DCLTY00KH1Jwc/APpis8w2hZ+H63baGTi+438E3fBCreU8rlFpYszP5U/1TqRE6Vsf iSmg== X-Gm-Message-State: AOAM531iCs00fVtpe8VCSfp0qAicroNAPoKzvwXPvaAawI0Yu7sfZv6S 3q2OlTtZlAs8tPptEEMYYZQ8ZA== X-Received: by 2002:a05:651c:10cc:: with SMTP id l12mr1934994ljn.351.1602000328219; Tue, 06 Oct 2020 09:05:28 -0700 (PDT) Received: from localhost.localdomain (h-98-128-180-91.NA.cust.bahnhof.se. [98.128.180.91]) by smtp.gmail.com with ESMTPSA id c16sm640925lfc.304.2020.10.06.09.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 09:05:27 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Nishanth Menon , linux-pm@vger.kernel.org Cc: Aaro Koskinen , Tony Lindgren , Andy Gross , Bjorn Andersson , Niklas Cassel , Heiko Stuebner , Ulf Hansson , Kevin Hilman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/4] power: avs: qcom-cpr: Move the driver to the qcom specific drivers Date: Tue, 6 Oct 2020 18:05:13 +0200 Message-Id: <20201006160516.319830-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201006160516.319830-1-ulf.hansson@linaro.org> References: <20201006160516.319830-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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