From patchwork Thu Mar 27 10:43:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 3897341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0C52B9F334 for ; Thu, 27 Mar 2014 10:44:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D03C20171 for ; Thu, 27 Mar 2014 10:44:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9806320123 for ; Thu, 27 Mar 2014 10:44:25 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WT7nI-0007pw-Uw; Thu, 27 Mar 2014 10:44:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WT7nG-0001N0-HP; Thu, 27 Mar 2014 10:44:18 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WT7nC-0001LN-Vg for linux-arm-kernel@lists.infradead.org; Thu, 27 Mar 2014 10:44:17 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N33005DNCGY3F40@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 27 Mar 2014 19:43:46 +0900 (KST) X-AuditID: cbfee61a-b7fb26d00000724f-21-533400e2acf8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 33.23.29263.2E004335; Thu, 27 Mar 2014 19:43:46 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N33008K2CGO9W80@mmp1.samsung.com>; Thu, 27 Mar 2014 19:43:45 +0900 (KST) From: Sylwester Nawrocki To: mturquette@linaro.org Subject: [PATCH] clk: reverse default clk provider initialization order in of_clk_init() Date: Thu, 27 Mar 2014 11:43:32 +0100 Message-id: <1395917012-23483-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJLMWRmVeSWpSXmKPExsVy+t9jAd1HDCbBBmvO81pcOHeY0eLhVX+L r4dXMFpsenyN1eLyrjlsFk8nXGSz+Ha5md1i3cMXTBaH37SzWrz/6WjxdN0SZgdujwW/trJ4 7Jx1l93j1YU7LB53ru1h89i8pN5j0uI/bB59W1YxenzeJBfAEcVlk5Kak1mWWqRvl8CVsXZW E2vBY/aKbZ/4Gxj3sXUxcnJICJhI/Dp4EcoWk7hwbz2QzcUhJLCIUWLq053sEE4Hk0Tj0d/M IFVsAoYSvUf7GEFsEQFJiQefp7OAFDELLGaSWHJrGwtIQlggSuL03h4gm4ODRUBVYtvGehCT V8BNYsk8RRBTQkBBYs4kmwmM3AsYGVYxiqYWJBcUJ6XnGuoVJ+YWl+al6yXn525iBAfYM6kd jCsbLA4xCnAwKvHw7rhvFCzEmlhWXJl7iFGCg1lJhLf/r3GwEG9KYmVValF+fFFpTmrxIUZp DhYlcd4DrdaBQgLpiSWp2ampBalFMFkmDk6pBsY1VYxVSQ84rpvIpz2dXH3xzPxbeZNKub3i WU2SxRafeKFo2jB5n/fSZL37G+YffeTWMGNV0bqQOXJMYq/mPzOt0irx89/u+P2/9dL7/1V3 L1R/mXH0ZlhpbNDmwiyba9/32ecL+5w7WqY5ZeuebK11r25XH2VeEV7y+N1Xb6Zjsa+a/wtU 605SYinOSDTUYi4qTgQAac5jVSwCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140327_064415_225424_DBD63BC7 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.3 (-------) Cc: khilman@linaro.org, plagnioj@jcrosoft.com, nicolas.ferre@atmel.com, linux-kernel@vger.kernel.org, b.brezillon@overkiz.com, Sylwester Nawrocki , shawn.guo@linaro.org, festevam@gmail.com, linux-arm-kernel@lists.infradead.org, sebastian.hesselbarth@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This restores the default clocks registration order as parsed from devicetree, i.e. as before commit 1771b10d605d26ccee771a7fb4b08718 "clk: respect the clock dependencies in of_clk_init", for when there is no explicit parent clock dependencies between clock providers specified in the device tree. It prevents regressions (boot failure, division by 0 errors) on imx and exynos platforms. Signed-off-by: Sylwester Nawrocki Tested-by: Fabio Estevam --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 07cba07..c859adf 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2596,7 +2596,7 @@ void __init of_clk_init(const struct of_device_id *matches) parent->clk_init_cb = match->data; parent->np = np; - list_add(&parent->node, &clk_provider_list); + list_add_tail(&parent->node, &clk_provider_list); } while (!list_empty(&clk_provider_list)) {