Received: by 10.223.185.116 with SMTP id b49csp4167690wrg; Mon, 19 Feb 2018 12:25:02 -0800 (PST) X-Google-Smtp-Source: AH8x226EOMeoz9q30GzEHsctHJOmT/F/ecekio47fxa/uea0nNLRSCpLueQMhlP/ZopIxaPRJo3i X-Received: by 10.101.93.134 with SMTP id f6mr7487310pgt.293.1519071902874; Mon, 19 Feb 2018 12:25:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519071902; cv=none; d=google.com; s=arc-20160816; b=H1thSIzLNx8rDJkY/Bh4LfawPKlbqZbunIG+7Si2NwsT3uCQmoCca3gIK0mq8lByJj 178fTO/1R4CYJdJrHi8Fpi7so/4yo78agcKz56BdyhL+Y69MvfS+k8de3kwDgipsSuNj DEL9YocvZKjdnF9llV+GoYO3qMU5okc35jBkXbtt5/3/Iz/aqQBcnKCtePMcs8hvXDrd y4aPKHyShkOBaTyN0g/IPnGS2oXKoDbTyQ86VdWiu+Uxe7TTd7YmQip6gwVzndqOiWFN vreOJ2aDzHJrpCocn3+wCW/u4GJmaX9+ziLLvuiXj+SCMRAAv6NGEMwr36ZzsAavErJT X8jQ== 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=w9fPp3N7oVv/PoXJ2YPP5sMyIJak3t4wKnrhwjBx/tI=; b=doxYyoUjXWRADwVMqs76NHfO9QQVotPDRIzckDm4Gyzh6P9Uex04FiFfsEK3V6WZ6X +iRVpqdh5aEYTVOhg+kUu3EwPEaeWo9YG4vanvdgfV6IUBrym1D1TGVMBD1eYhc6qBis /cMMXIFVFPnaU2VM3jpH8gcgEhxieDnUpxShKGEipcAOPiHTqORcuHbllUITXzbC71f4 ekmRcPsFMFMEsbv3a9HtAeLRF9EfDrFze9oNbT6i4XFLS3E5XMKcF7AnkZbov2cQqfyE cMoTtIOgPE9jyiKYkVp5RDLdBoxUbgLazfSx6EC6+zsIUZpRRh9+n2eDSCZezvyoNDin VVNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=HVlkpmqa; 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 g27-v6si6322256plj.665.2018.02.19.12.24.48; Mon, 19 Feb 2018 12:25:02 -0800 (PST) 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=HVlkpmqa; 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 S932295AbeBSUXw (ORCPT + 99 others); Mon, 19 Feb 2018 15:23:52 -0500 Received: from vern.gendns.com ([206.190.152.46]:58662 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932244AbeBSUXV (ORCPT ); Mon, 19 Feb 2018 15:23:21 -0500 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=w9fPp3N7oVv/PoXJ2YPP5sMyIJak3t4wKnrhwjBx/tI=; b=HVlkpmqa91IrQqYAfmF0/aYbk t0BE2vzLCMUNysn/9TjI5cQm1ZYHRSV2K3J7D0wGd0vOrLP1UcY4IhYTffPmnuKx93xyhuhKcF+l7 GSHhxQy/Hxzv7p1BeS6GfmdZcbR+AvwXPNRs9Adkw2ya7ZxQ7Amos7LxvYoskdDaUj7LpOFQ7UXfq oBTJKZtNrWbIkO51vyfYkkleHIaif4vUN/RDyJMWgcqz3vEAbeKdz/ipCLczJzkpMeYw1Oes36nnm Nx0SzYRHOTRPAsN7YdqDr20/wm4cijWBHmBaQVSU06Gzvi7kUTiGpplUicK/Cpb88iyqrX3gXbzGm vP04+Ajzw==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:48842 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1enrwn-003xBV-60; Mon, 19 Feb 2018 15:22:01 -0500 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 v7 29/42] ARM: davinci: remove CONFIG_DAVINCI_RESET_CLOCKS Date: Mon, 19 Feb 2018 14:21:50 -0600 Message-Id: <1519071723-31790-30-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519071723-31790-1-git-send-email-david@lechnology.com> References: <1519071723-31790-1-git-send-email-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 --- 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 05c3eecf..ba9912b 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 bcb6a7b..e03f95c 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 5f45d0a..ded8f5f 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.7.4