Received: by 10.192.165.148 with SMTP id m20csp121584imm; Thu, 26 Apr 2018 17:25:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrC0SKK4YB6sHs5CEQuZQzlI/q+iPOdO92EoJZLSufSTlGWmapqWpib6Y0RwN9N+oBS3lvQ X-Received: by 2002:a17:902:9a04:: with SMTP id v4-v6mr182761plp.21.1524788758361; Thu, 26 Apr 2018 17:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524788758; cv=none; d=google.com; s=arc-20160816; b=w3dy6WCj9URKvgdoF5jtQA2PHXxjc0N2CfeXgDAWIAuyrk4BySUY8IjYplbdgaD5Hk T+lBQyjtxm7jNLH6lC/xQgUzIA5zSnVbE0CcBzbl1rnAm4umSKwKHGkGRNlKWs74PSeV +eUQD4i0XzyPSLYSHXf2upitCOo2OEPrcZ6Jh1BaUjUYsONozZx6m0lYOLhGw2iINBu8 wIdV9WMZmW64IaU5Bcw0UBajROzl6+R3x5fF1NXhq3hDs+HMZjHk3er7dwnBdpUIRoJA BSlcVTvTj+XZm43H93dKJ33L+hln3/bIxfv7nKtDg0hKq/R2wtRHAFAiTQiK/9cnzuI2 sgBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=99YWvDzYWhHNVdZj6HDPuGaWYk+JiVbqs995IvWfmrI=; b=FDXANoPFWTV2FvGAelfay8Ce5fRjADTYzizBTXHfyt+d6j006n5UdNHzffFcTwkq/b MJEDU61a+L5V1sarwjcOMlluaGu10JA2vLTyAZ5OHkKLh3Qt6JxMy5ovmdJzu3BKn3k5 J+n2rNl7IF84IugkIuBcQFyFmY0i1Q+oLZBDnIxbK+nNbR8ta2Au7IatcNsBZg8SRrkO fLSpEmGeEiZF4oJEh8alJzY2+CT5tceCGRLT8Awvl+3Rlqqko7Sy5ooBdugfCctej2sb Qf90s8l3uYkbuFPwxjIitYJHxzML37CKOT4zMC0FyJpT3DvV10sEr8Tndrom9KuI9n2z 8AHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=w7IcXKHU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s124-v6si85491pgc.4.2018.04.26.17.25.44; Thu, 26 Apr 2018 17:25:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=w7IcXKHU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757379AbeD0AYK (ORCPT + 99 others); Thu, 26 Apr 2018 20:24:10 -0400 Received: from vern.gendns.com ([206.190.152.46]:46321 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757261AbeD0ASm (ORCPT ); Thu, 26 Apr 2018 20:18:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=99YWvDzYWhHNVdZj6HDPuGaWYk+JiVbqs995IvWfmrI=; b=w7IcXKHUHkm086UMplJGXJw1j b6KKc695N8T3JAl+r7xpMENGKOmHuWJzSLPumax4XvAYZL2AA1/FoTmMObdir50IbEcgfzRokJTOY eE5COxlf4pOZKFS69VTxmxEBC03pYnJKtyq64DJYzW+x5ws3HsJVIxgNXrk893bjx8OR6WAVJUWY3 LSyklvMv2ayuaT3L5JWnPCWhpHp7sXOHA2HK/w0/YWyR0CQG9sES7ON13d0PksPS1pIEt8Gy9L4Pk IS+7irixhXqZ7AynRgbDWDwSjnEa00Y4S46PB4NZBOMZ5a7rMfXfU7L4RZv93HAdcnlAvas5rpm74 u0n9WwU9w==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:39016 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fBr60-000iph-RX; Thu, 26 Apr 2018 20:18:41 -0400 From: David Lechner To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , linux-kernel@vger.kernel.org, David Lechner Subject: [PATCH v9 13/27] ARM: davinci: remove CONFIG_DAVINCI_RESET_CLOCKS Date: Thu, 26 Apr 2018 19:17:31 -0500 Message-Id: <20180427001745.4116-14-david@lechnology.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427001745.4116-1-david@lechnology.com> References: <20180427001745.4116-1-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The common clock framework will take care of disabling unused clocks when we switch from the legacy davinci clocks and having this enabled will cause compile errors after we switch, so remove it now. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v9 changes: - none v8 changes: - none v7 changes: - none v6 changes: - none arch/arm/mach-davinci/Kconfig | 12 ------------ arch/arm/mach-davinci/common.c | 1 - arch/arm/mach-davinci/include/mach/common.h | 6 ------ 3 files changed, 19 deletions(-) diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index 05c3eecf47cb..ba9912b4dfab 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig @@ -231,18 +231,6 @@ config DAVINCI_MUX_WARNINGS to change the pin multiplexing setup. When there are no warnings printed, it's safe to deselect DAVINCI_MUX for your product. -config DAVINCI_RESET_CLOCKS - bool "Reset unused clocks during boot" - depends on ARCH_DAVINCI - help - Say Y if you want to reset unused clocks during boot. - This option saves power, but assumes all drivers are - using the clock framework. Broken drivers that do not - yet use clock framework may not work with this option. - If you are booting from another operating system, you - probably do not want this option enabled until your - device drivers work properly. - endmenu endif diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c index bcb6a7ba84e9..e03f95ccd95c 100644 --- a/arch/arm/mach-davinci/common.c +++ b/arch/arm/mach-davinci/common.c @@ -118,5 +118,4 @@ void __init davinci_common_init(const struct davinci_soc_info *soc_info) void __init davinci_init_late(void) { davinci_cpufreq_init(); - davinci_clk_disable_unused(); } diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h index 5f45d0ac66a8..ded8f5f42725 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h @@ -83,12 +83,6 @@ extern void davinci_common_init(const struct davinci_soc_info *soc_info); extern void davinci_init_ide(void); void davinci_init_late(void); -#ifdef CONFIG_DAVINCI_RESET_CLOCKS -int davinci_clk_disable_unused(void); -#else -static inline int davinci_clk_disable_unused(void) { return 0; } -#endif - #ifdef CONFIG_CPU_FREQ int davinci_cpufreq_init(void); #else -- 2.17.0