Received: by 10.213.65.68 with SMTP id h4csp125461imn; Thu, 15 Mar 2018 19:55:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELt9bRceU7LCoX6g4aif4BcH4kygJ4Wh1GcMErKlKZ/o+T91ZG93LcjdNaOj8cReDyONbid/ X-Received: by 10.99.56.68 with SMTP id h4mr163488pgn.230.1521168947219; Thu, 15 Mar 2018 19:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521168947; cv=none; d=google.com; s=arc-20160816; b=b+JK1V9aGS34R6C9Vqz/Fb2GMtmVmEHyWzcr45JkoNwugJoA4UCUMCYh10fvgvLqtC 638OJ+sZRZJgiLDYFCrKQBK8Dr5PgrQoq9IJI3gqUZgnteulN2hEZD+Cahk7XBsTFmzq 38r+qQUnI+rx+oAltWlwQbtbEBd/5d8ItIoSy9DETPLJzh5GdVaI095E9E3TJ+YFbRTC JOwnCd+8fT/MSd5SwqbTPV4kCL8S3kHJ97c0aGGr6WMB2CG1DK7jBYkvyYQ1PsrIubPv hO9FTc8767Bpl/cw0xYDiRcLwmCZS0vktRo+A5N/bjORLWX3j+5oPOND92ESUarNbxo8 IYgA== 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=wlzdQMG2tbGtxFEfcVvZ95EnWg73OMCnHatBbsf7gQc=; b=vnROY0rqc4GTP8J/4la/Fq5p9dPgE95c+f4qBO96OM2U6n+mFKPLXdqNGiqblR5pEZ 700y2E6jytGmlQrK1tu98yy3lC1ibfTOsRK6kqnwuy48N8yZB52yUzBHIdN5wLbOcdSe 6cyC8Q0cXvNiZ+GBYIMMYVaFRePeI3WQxcs0MWirQUbh9ibiG1lRZNesBGtbDGY4MdTC VfWyPbLQqG/sVRXQ0h42i5evHPFaJPB1saGhpX1oekwJG/9nyKbPtMuOQNfqog2unU15 +UbzDwC/3OA1OFj6Gw4CVPZFBA7sSebTv6Raxf7zMy4rutRMl1TBMHnDhsagW+WmW0kb unng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=FRVTS+Aw; 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 p17si4285879pgq.8.2018.03.15.19.55.32; Thu, 15 Mar 2018 19:55:47 -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=FRVTS+Aw; 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 S933249AbeCPCyR (ORCPT + 99 others); Thu, 15 Mar 2018 22:54:17 -0400 Received: from vern.gendns.com ([206.190.152.46]:55595 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753086AbeCPCyL (ORCPT ); Thu, 15 Mar 2018 22:54:11 -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=wlzdQMG2tbGtxFEfcVvZ95EnWg73OMCnHatBbsf7gQc=; b=FRVTS+AwGPUNXjPMfhQs+pS8Q dfKrLxvdGrGG3y1I+mdkyLJsKRWl34BGZWmMCFmugiLfdSQ//J9QhdSBHtyU8Qp+OTqxj3PlL9ae6 Q57u4R1QwS1ve55p0/NDO4FW7xEEfbJxtognQw1NP918AnKlLfn0iv2nVtJR5by8aYxUxfOf1sOS6 yiViQyYkainD0CygrdKMH1pCFRV4nwE3axmabyqicbWfI/7ylDnST1DhBF4LgPPUtiWZmEahB3RRN 7EiCazsyVyr1+rLFXAcjRXILhnGg2HqjM5EZNGc0PsdY+24D70oT/IJXeTfJg044mOBAjaQK1DTnm C2ZwMxDKA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:44986 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ewfTW-002UlD-Hw; Thu, 15 Mar 2018 22:52:10 -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 v8 29/42] ARM: davinci: remove CONFIG_DAVINCI_RESET_CLOCKS Date: Thu, 15 Mar 2018 21:52:45 -0500 Message-Id: <1521168778-27236-30-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521168778-27236-1-git-send-email-david@lechnology.com> References: <1521168778-27236-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 --- 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 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