From patchwork Tue Apr 25 17:12:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9698837 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 5650D60249 for ; Tue, 25 Apr 2017 17:14:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42A742862D for ; Tue, 25 Apr 2017 17:14:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36F722867C; Tue, 25 Apr 2017 17:14:42 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM 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 D728D2862D for ; Tue, 25 Apr 2017 17:14:41 +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: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:In-Reply-To: References:List-Owner; bh=yI6hYiu7+4xnDE00svyUAZMk9nwVmg3aEBKQFbBYMVI=; b=jTw yhjXm+ijR7m7WVPp+DEuaZ50870U+ir2j95dTzITxxdBS5dVwkF6B68E3Zc/rNuVfFeOvH0vHayCA TiGx1/ou8xkEn/IR/te4EklthoZYKMRVKfj+J+NHUhXj3hli5QO8Gt5HXk2k/nP7aER9Av65spsbv iNE9hpeAQfxH5Hm+g74s4RMbOUpyQCBu/F7O1nrTieWHT5Vam6oXFn1ldhYve57uK/ACM1ZVN0ITf yl9bqzt3spgx/QJ7bNy3U4dqZPVzzMxRZJBsmnuiz/IugAaQqn6O+wso9+t2xBaFQJAK4E8NV+rT4 NZbPWZGXjIEUVetZ+wo1L+5bmsjWd6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d342z-0003hM-2k; Tue, 25 Apr 2017 17:14:41 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d342w-0003Or-9x for linux-arm-kernel@lists.infradead.org; Tue, 25 Apr 2017 17:14:39 +0000 Received: by mail-wr0-x243.google.com with SMTP id v42so17641058wrc.3 for ; Tue, 25 Apr 2017 10:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wM+1hY08NgDl/DgasBN0CXwe3wJ1CZ+4xZtjNsVCk3o=; b=Bpdzh7iB3LfQaJrVN3yU9GhA7itfIwKmzv9LwPj6U9VQfYaIEgKW6hPP6zh5hNgMaI KjMQiOYTmRpb1HV/LeDDDmx1gyIohu84nXvZtAPJEUZ+tZxzbqRnfvxjcr52Ldebacff MuFZWpEbEBrr6krvZttyvQHCI6oMxX0iEUpNZkVtPenQgC+HeL1ThF10wO8nJLUl5LuD Djnw8ZLjfgh8TPsAgNuw2ZSZ1ZdnpikdiQAWqnWLcjWBS+33f/54X/N+mFX2ahftBTMu erEZBr67s3D8uvIdJlG1qT+Jyiu3KMPV6nsjGQSWeohUNnpdnXYkHFK+IYfjWEo9V566 oHDg== 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; bh=wM+1hY08NgDl/DgasBN0CXwe3wJ1CZ+4xZtjNsVCk3o=; b=lipeF6fdDYEuBzsrbYfWhcbKGpLSFvCxsOwYaPp5peIMHTktdvpLuaHqvxyi+SttQb AxhiobeTmNnC6hv0EfSYrhL14X41s0NyMzmq1eLcM9KsQFsYyYB2KM1ZVUZadaBUY56P OoW51/nwOHO7am6Ot5V5P9WSGbsxTu/5V70d9Zl6kG79UUz6rtLrA7i6BmfI4SCUAxXi cv+pUa2Se8qAHFG7x/CIScSOBqPObtnTXr/NR4OjMlAvaII+3yLK/l46d6VAiXhSXLeb vAtgcxKFzjn23mEpRGaZ3CNpS0BG8+BVGP7lEoTix3AAbsq3g4n48K3XfHu+yjRbQspF /AFA== X-Gm-Message-State: AN3rC/7GnEp+2hnlGGLfh4C5qEmEXnek27/otuFjArXEUs4FM/OkJWnf sW7xRmjerMWDKQ== X-Received: by 10.223.181.131 with SMTP id c3mr11597435wre.155.1493140455846; Tue, 25 Apr 2017 10:14:15 -0700 (PDT) Received: from Red.local (LFbn-1-7035-57.w90-116.abo.wanadoo.fr. [90.116.208.57]) by smtp.googlemail.com with ESMTPSA id 81sm6623479wmj.9.2017.04.25.10.14.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Apr 2017 10:14:15 -0700 (PDT) From: Corentin Labbe To: maxime.ripard@free-electrons.com, wens@csie.org, mturquette@baylibre.com, sboyd@codeaurora.org Subject: [PATCH] clk: sunxi-ng: Fix dependency on sunxi_gate Date: Tue, 25 Apr 2017 19:12:09 +0200 Message-Id: <20170425171209.6229-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170425_101438_502842_0055817C X-CRM114-Status: GOOD ( 10.79 ) 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: Corentin Labbe , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 When CONFIG_SUNXI_CCU is set but no other SUNXI_CCU is selected i got the following build error: drivers/built-in.o: In function `ccu_pll_notifier_cb': drivers/clk/sunxi-ng/ccu_common.c:71: undefined reference to `ccu_gate_helper_disable' drivers/clk/sunxi-ng/ccu_common.c:73: undefined reference to `ccu_gate_helper_enable' The problem is the function ccu_pll_notifier_cb in ccu_common.c need some function from ccu_gate.c which is not compiled since SUNXI_CCU_GATE is not selected. This patch remove SUNXI_CCU_GATE and compile ccu_gate.c unconditionnaly since all other combination of options select SUNXI_CCU_GATE finally. Fixes: 02ae2bc6febd ("clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks") Signed-off-by: Corentin Labbe --- drivers/clk/sunxi-ng/Kconfig | 11 ----------- drivers/clk/sunxi-ng/Makefile | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig index 8bee225..d7842f9 100644 --- a/drivers/clk/sunxi-ng/Kconfig +++ b/drivers/clk/sunxi-ng/Kconfig @@ -15,9 +15,6 @@ config SUNXI_CCU_DIV config SUNXI_CCU_FRAC bool -config SUNXI_CCU_GATE - bool - config SUNXI_CCU_MUX bool @@ -32,24 +29,19 @@ config SUNXI_CCU_PHASE config SUNXI_CCU_NK bool - select SUNXI_CCU_GATE config SUNXI_CCU_NKM bool - select SUNXI_CCU_GATE config SUNXI_CCU_NKMP bool - select SUNXI_CCU_GATE config SUNXI_CCU_NM bool select SUNXI_CCU_FRAC - select SUNXI_CCU_GATE config SUNXI_CCU_MP bool - select SUNXI_CCU_GATE select SUNXI_CCU_MUX # SoC Drivers @@ -119,7 +111,6 @@ config SUN8I_A33_CCU config SUN8I_A83T_CCU bool "Support for the Allwinner A83T CCU" select SUNXI_CCU_DIV - select SUNXI_CCU_GATE select SUNXI_CCU_NKMP select SUNXI_CCU_NM select SUNXI_CCU_MP @@ -154,7 +145,6 @@ config SUN9I_A80_CCU bool "Support for the Allwinner A80 CCU" select SUNXI_CCU_DIV select SUNXI_CCU_MULT - select SUNXI_CCU_GATE select SUNXI_CCU_NKMP select SUNXI_CCU_NM select SUNXI_CCU_MP @@ -165,7 +155,6 @@ config SUN9I_A80_CCU config SUN8I_R_CCU bool "Support for Allwinner SoCs' PRCM CCUs" select SUNXI_CCU_DIV - select SUNXI_CCU_GATE default MACH_SUN8I || (ARCH_SUNXI && ARM64) endif diff --git a/drivers/clk/sunxi-ng/Makefile b/drivers/clk/sunxi-ng/Makefile index 78028c8..52aab41 100644 --- a/drivers/clk/sunxi-ng/Makefile +++ b/drivers/clk/sunxi-ng/Makefile @@ -1,11 +1,11 @@ # Common objects obj-$(CONFIG_SUNXI_CCU) += ccu_common.o obj-$(CONFIG_SUNXI_CCU) += ccu_reset.o +obj-$(CONFIG_SUNXI_CCU) += ccu_gate.o # Base clock types obj-$(CONFIG_SUNXI_CCU_DIV) += ccu_div.o obj-$(CONFIG_SUNXI_CCU_FRAC) += ccu_frac.o -obj-$(CONFIG_SUNXI_CCU_GATE) += ccu_gate.o obj-$(CONFIG_SUNXI_CCU_MUX) += ccu_mux.o obj-$(CONFIG_SUNXI_CCU_MULT) += ccu_mult.o obj-$(CONFIG_SUNXI_CCU_PHASE) += ccu_phase.o