From patchwork Mon Jan 8 02:23:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10148843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 752FA601BE for ; Mon, 8 Jan 2018 02:49:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63B1328602 for ; Mon, 8 Jan 2018 02:49:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 582FE28610; Mon, 8 Jan 2018 02:49:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 01A9D28602 for ; Mon, 8 Jan 2018 02:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RjijotplQk/bPdtbI1oPWOisIGtFCySb+zUuZN1DjOk=; b=blsI56gv131AmrH6kgL4KzdCJm 9AZtxHmwi0MIIXA9NFYF2QaG0/MvB12XdSrPk0QuGjPMPA2X3Tx+gqpip8hIPchC9xcflJs0JXZHL tJlYVmA1+XxrWmjc5GI2cy/pmj0tPHEjKrvmehYORSaPkO8Rod91S3yBgV/++vMfDkDo4/btOu0HK 1BmegCCXv/tHwo7wusNOMZRc8rQDKFQ3DXueclkMwiMlkidqwkVVFIzcvqs5sUFTI1Gph/goLKeOD aU52CqCTGSWRb06q6UZR36X/zzXbB1x6Bcd3qFkKgU9+46JnoJkEDFfIXhKTQzMKtcUCDoCCHjfAT iDaJ8bbQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eYNUj-0004TM-1C; Mon, 08 Jan 2018 02:49:01 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYNOM-0007Y4-RS for linux-arm-kernel@bombadil.infradead.org; Mon, 08 Jan 2018 02:42:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=QGIvmjoqWe5DiKyyLltWewqqK/zrlSuiyRujkN2e/ig=; b=Yh3txCv8CCm9q6ZUUrE9NJ6n2 Eb4mGXcIXR1a4bv1g5ymoQHqEL83TZZakD/0asDC5dbUcGPZCBWJpHsjCsUMg4fQHMvbfiFG4SZEL 0LfozYJENM9+IixVl39kT+oSOXSGyRrRLkj3vfd9Zm8m0saH3JXxX2dRxS5Sk3yiJa6+ln3H0ss3f 0c2tHw04TCyDVvzIp/kvmtJ14kKGiiCE+v0a1S3tjeElv7zcIJN6otOjYBffUONUfMuT5GO+jno98 O8YbLKwmyStp/jT8QI32OpRu4ezUBPq88ZzD7X9npFNIFI86+1KM7Fnl4x9OZbOg0N3iP7QRMMdLR NkHBIiY1g==; Received: from vern.gendns.com ([206.190.152.46]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYN75-000725-T5 for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2018 02:24:39 +0000 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=QGIvmjoqWe5DiKyyLltWewqqK/zrlSuiyRujkN2e/ig=; b=BeNnGZeHyGRTa0KjKIiCgrGPK KTCZuk++3tBVSFibAsAM/q6BanUJ6EORP7QaM5kHhhYTwF+6Ua+GVlvgkIjTMA0rABUSV+fzgVqKK GCL86qGnskF0R8bGA4qHkw8zvVVqI+3Bf2IymZLeyb8tBr5OgTyL0SNeov8MgNsRKoQPjrw8uKHql 7MxyV5deVUhIXCBttSC+eYrMEKtKAP43hHU4p1g+Ev403aW9Irk+UD+WU9yKWA4OxELRK2M0s9UII cJ3pLM5kHFUV8H9Z1+dKCJpoj5/nGznkqCZP2ARI7xUy1g4SR0jc5qZ2nAyG30P+Of5quRoSHN/nQ tp0D/MTeg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:54028 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89) (envelope-from ) id 1eYN6l-000AHD-F7; Sun, 07 Jan 2018 21:24:15 -0500 From: David Lechner To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 31/44] ARM: davinci: remove CONFIG_DAVINCI_RESET_CLOCKS Date: Sun, 7 Jan 2018 20:23:50 -0600 Message-Id: <1515378238-23105-2-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515378238-23105-1-git-send-email-david@lechnology.com> References: <1515378238-23105-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 - lists.infradead.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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180108_022436_144704_DB9B225E X-CRM114-Status: GOOD ( 12.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , David Lechner , Kevin Hilman , Stephen Boyd , Michael Turquette , Sekhar Nori , linux-kernel@vger.kernel.org, Rob Herring , Adam Ford MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 f0d5e858..c86a058 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h @@ -82,12 +82,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