From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753651AbbDBPe7 (ORCPT ); Thu, 2 Apr 2015 11:34:59 -0400 Received: from gloria.sntech.de ([95.129.55.99]:56753 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbbDBPeV (ORCPT ); Thu, 2 Apr 2015 11:34:21 -0400 From: Heiko Stuebner To: mturquette@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, dianders@chromium.org, linux@arm.linux.org.uk, Heiko Stuebner Subject: [PATCH 4/4] clk: rockchip: enable CLK_DEFER_ORPHAN for all branches Date: Thu, 2 Apr 2015 17:34:13 +0200 Message-Id: <1427988853-9549-5-git-send-email-heiko@sntech.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427988853-9549-1-git-send-email-heiko@sntech.de> References: <1427988853-9549-1-git-send-email-heiko@sntech.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All Rockchip drivers should handle deferentials correctly and on all boards we have the situation that some clock sources are generated off-soc by an external i2c component (like the xin32k feeding for example the sclk_tsadc on rk3288). So some clocks are always orphans until the i2c drivers are probed. So add the new CLK_DEFER_ORPHAN flag for all our clock branches to generate correct deferals for this timespan. Signed-off-by: Heiko Stuebner --- drivers/clk/rockchip/clk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index 20e05bb..5bb5fa6 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -220,6 +220,9 @@ void __init rockchip_clk_register_branches( for (idx = 0; idx < nr_clk; idx++, list++) { flags = list->flags; + /* defer clk_get on orphan clocks */ + flags |= CLK_DEFER_ORPHAN; + /* catch simple muxes */ switch (list->branch_type) { case branch_mux: -- 2.1.4