Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp403779pxu; Tue, 6 Oct 2020 09:07:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyGMw1XcAj3Rrsi5h2L32GXtArWb8xyZZXkHzDidANfLo6aYysD5Prdm9RQt8Hr+wfk+ci X-Received: by 2002:aa7:d7d2:: with SMTP id e18mr6513904eds.120.1602000434033; Tue, 06 Oct 2020 09:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602000434; cv=none; d=google.com; s=arc-20160816; b=KZe5PdUd6hb137s6XiON2fmOaRuF8xRXUnJNsG19uojRWbauNDosvXxJevPnvRPUFa MB30uIaE4GtcS271PLFVCbAppWSPnJoJopCsldImHsRyroUXQtYGnnDE/CY/31e91xv5 NKgbBNFiKGkksdFQVw33OpZ1DsjlAB3+HsKW190ZgC5M1918CgLnoWqi0Ve7WPLKIYdC SPsJqPJCUy5BfRgiUAZE32zllDvkwn6x2Pobfc5Lj1n8PjFBrHbAKO59Aptbc2Sa928u AlbdlptkbkQpamoR5s4PCFGkoBoJiNdVuZZ1kBa3Yxo3h89YJrkdq7DnvJEUqjP9oPNz o06w== 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=UmR0SlEWURAW2elKIdEQMMvc/1QuzUmp8HMEYH38pRg=; b=QX0jFPBHt6zwPsohnOl5Q1N5pVoQxE3rf85EgWIM//5n4DSXAz7ERAIkhxlVfeJ14J x+9QD/kKQ2FrFdUxRo5p4zZzRLL1xtIQJ96ZlEe81boOzXvkleCBkfwaeipPR3NFvqdA UcpB9cqgZk1D+dpuSu2ZV8koq87v5U9HNSEG3OcBbPzQOgAazyIMmO3Q80mI1RisJEIC U+PJkKQfa9pPYKNP+WEqtNTj0juYelpQObBRdY8ZGW/W2m21KZIFd3i0ZingpP58FVbE iet+VTR19S3V04lB5yS+HgGZg9+m3OGEDmn7+cVfuhV7OdC9EuIOsm07b7ElbtSm7gUV 0Byw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="XTuI/Ivr"; 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 f1si2164740ejh.159.2020.10.06.09.06.50; Tue, 06 Oct 2020 09:07:14 -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="XTuI/Ivr"; 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 S1726396AbgJFQFj (ORCPT + 99 others); Tue, 6 Oct 2020 12:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbgJFQFe (ORCPT ); Tue, 6 Oct 2020 12:05:34 -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 16AD8C0613D4 for ; Tue, 6 Oct 2020 09:05:34 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id p15so7182166ljj.8 for ; Tue, 06 Oct 2020 09:05:33 -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=UmR0SlEWURAW2elKIdEQMMvc/1QuzUmp8HMEYH38pRg=; b=XTuI/IvrPTmTwnj0muDXHYNo+Knzu3pD/1v+EPUlOhh8MomeTzxfWg9rRWDAC1wq65 Bofwwo8Kgj+Hk8HfSeZzbpJ+x7QwK2pe5tRbIbSScidtLDaUberFDDPilHpn96Qrwc8L ziHnESuMxpDuWb0JudgWCK/8+/OlICRZsvJxcyJQNn1NkNdUNv4UHeVVzm5fP3jWzejO +FU3HB866iJKKCzL3Hj7hP1uiQk53lIWWKaOLOj+y1yNcQANV1F0HPk7acpOOjFAqjAY SzED3epUcCQcaZIgKJBFpfaOpjoX8RmNSRDsb/BEwCs1tw2bhnpv3m79AIEdaQoNroiJ nvbQ== 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=UmR0SlEWURAW2elKIdEQMMvc/1QuzUmp8HMEYH38pRg=; b=MCl1D4Mp/3O70kbz1RfwJXweRgFIqdj1mzai3lO8k5UOg3EQb+2rc1akE3yo4d6eNF f5QulagpTSLgcp+DUJT5pmaSmoStLCyOm7e1iEXrFaI5cXfCFORjVncYFFYr/pj4Dfl9 +3pSkKhoaz/YyEhqUR0HTY9ZnbVEZebdGbXmVdoBZKeaZIwC5MjPrLu6dosvN/R5Gyng ikAjtacPkhOfTibt6n1RMV7jdWKNn6M4YxKjnZGv2YLcll6wgosjZLPVpBZMuw2hJOHf wHhO4F4BwjZqVXbdygnlLwHEk0yCEXvuzAMdnf7bQni7iVl5dMD6v1dXcvNN+Z72tw44 EsmQ== X-Gm-Message-State: AOAM5334ru2z6hRRhd/AKgt+c4RaFlFWkC8Jm8IbdE4uodr3dwXK7Jm9 XnyT5X0TNZHUCeC577AiMQoY8Q== X-Received: by 2002:a2e:7404:: with SMTP id p4mr2203467ljc.360.1602000332417; Tue, 06 Oct 2020 09:05:32 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 09:05:31 -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-omap@vger.kernel.org Subject: [PATCH 3/4] power: avs: smartreflex Move driver to soc specific drivers Date: Tue, 6 Oct 2020 18:05:15 +0200 Message-Id: <20201006160516.319830-4-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 smartreflex driver for OMAP to the ti directory. Cc: Nishanth Menon Cc: Aaro Koskinen Cc: Tony Lindgren Cc: linux-omap@vger.kernel.org Signed-off-by: Ulf Hansson --- MAINTAINERS | 4 ++-- arch/arm/plat-omap/Kconfig | 2 +- drivers/power/avs/Kconfig | 12 ------------ drivers/power/avs/Makefile | 1 - drivers/soc/ti/Makefile | 1 + drivers/{power/avs => soc/ti}/smartreflex.c | 0 6 files changed, 4 insertions(+), 16 deletions(-) rename drivers/{power/avs => soc/ti}/smartreflex.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index f51dd1944fe6..040f0506d1c6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5379,11 +5379,11 @@ F: include/linux/debugfs.h F: include/linux/kobj* F: lib/kobj* -DRIVERS FOR ADAPTIVE VOLTAGE SCALING (AVS) +DRIVERS FOR OMAP ADAPTIVE VOLTAGE SCALING (AVS) M: Nishanth Menon L: linux-pm@vger.kernel.org S: Maintained -F: drivers/power/avs/ +F: drivers/soc/ti/smartreflex.c F: include/linux/power/smartreflex.h DRM DRIVER FOR ALLWINNER DE2 AND DE3 ENGINE diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index 93fd7fc537cf..272670ef1e92 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig @@ -23,7 +23,7 @@ config OMAP_DEBUG_LEDS config POWER_AVS_OMAP bool "AVS(Adaptive Voltage Scaling) support for OMAP IP versions 1&2" - depends on POWER_AVS && (ARCH_OMAP3 || ARCH_OMAP4) && PM + depends on (ARCH_OMAP3 || ARCH_OMAP4) && PM select POWER_SUPPLY help Say Y to enable AVS(Adaptive Voltage Scaling) diff --git a/drivers/power/avs/Kconfig b/drivers/power/avs/Kconfig index 9dde5a7e75c9..a4e40e534e6a 100644 --- a/drivers/power/avs/Kconfig +++ b/drivers/power/avs/Kconfig @@ -1,13 +1 @@ # SPDX-License-Identifier: GPL-2.0-only -menuconfig POWER_AVS - bool "Adaptive Voltage Scaling class support" - help - AVS is a power management technique which finely controls the - operating voltage of a device in order to optimize (i.e. reduce) - its power consumption. - At a given operating point the voltage is adapted depending on - static factors (chip manufacturing process) and dynamic factors - (temperature depending performance). - AVS is also called SmartReflex on OMAP devices. - - Say Y here to enable Adaptive Voltage Scaling class support. diff --git a/drivers/power/avs/Makefile b/drivers/power/avs/Makefile index d541d436f01d..a4e40e534e6a 100644 --- a/drivers/power/avs/Makefile +++ b/drivers/power/avs/Makefile @@ -1,2 +1 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_POWER_AVS_OMAP) += smartreflex.o diff --git a/drivers/soc/ti/Makefile b/drivers/soc/ti/Makefile index 1110e5c98685..5463431ec96c 100644 --- a/drivers/soc/ti/Makefile +++ b/drivers/soc/ti/Makefile @@ -12,3 +12,4 @@ obj-$(CONFIG_TI_SCI_PM_DOMAINS) += ti_sci_pm_domains.o obj-$(CONFIG_TI_SCI_INTA_MSI_DOMAIN) += ti_sci_inta_msi.o obj-$(CONFIG_TI_K3_RINGACC) += k3-ringacc.o obj-$(CONFIG_TI_K3_SOCINFO) += k3-socinfo.o +obj-$(CONFIG_POWER_AVS_OMAP) += smartreflex.o diff --git a/drivers/power/avs/smartreflex.c b/drivers/soc/ti/smartreflex.c similarity index 100% rename from drivers/power/avs/smartreflex.c rename to drivers/soc/ti/smartreflex.c -- 2.25.1