From patchwork Thu Dec 1 17:15:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 86117 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp1007782obb; Thu, 1 Dec 2016 09:16:33 -0800 (PST) X-Received: by 10.84.160.204 with SMTP id v12mr44541961plg.122.1480612593397; Thu, 01 Dec 2016 09:16:33 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z65si876895plh.175.2016.12.01.09.16.33; Thu, 01 Dec 2016 09:16:33 -0800 (PST) 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=pass header.i=@baylibre-com.20150623.gappssmtp.com; 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 S1758776AbcLARQ2 (ORCPT + 25 others); Thu, 1 Dec 2016 12:16:28 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:36587 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752602AbcLARQZ (ORCPT ); Thu, 1 Dec 2016 12:16:25 -0500 Received: by mail-wm0-f50.google.com with SMTP id g23so306195689wme.1 for ; Thu, 01 Dec 2016 09:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9s3FLp3Pzp18W3WfKbOVVjxhZ94nz3xVQdaX7zfbyQk=; b=LAUA0EDH5DHL4YA4nr1f+zuw7W8+u+G7E6OIW98srpDBi1fIw7xTVPwZtU4x7yUXA5 IMCtMnNtTm2Y52XDg6Z6tZqBpy+eTU9tkwDNopkpUew7nrT9Zud3dM4HnH0T5jSUjCEo O8aM4BB9Awy6pycCrQMbHYsPcTHXUgJBITSqgHkXAD0B9KEzN/sDWLRTPDNCvaKbuAPj PHPeRcTDwk7fHxkcRYMFGACQz4zFrrIkqCrC3AVyoEd9xgIoLnTpl8DBQBOhcvyPZ2Kv F24Lky8VRNSE4XTdvno1Q14p8fkNGtzRz87SLSinSW1dWA5WgKIYLNqNJKX5JkCi+Ovs tixA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9s3FLp3Pzp18W3WfKbOVVjxhZ94nz3xVQdaX7zfbyQk=; b=IzCkpP2Au+n6+XhuIy5iXE8i7Ehz//NtEEUeEU9cF/JJVn2xwS1T8kCXlqnx/Hs3eq xlMGExmx/53P0dzMgy5LkxaI9GztVkVeRj5ZIeNOI2p/bcixrx7+rBgMM+IzAG3+ONzd MfFfjpYgdc38CboCd78+KxY6Zj0l+61s+TkuSLQoNY+YcnuCTkzD3J1/VMXjpGavu2hp l89EhIZ8UcQcAKi2crP/RWpyxdWdv+lsqBxmSlEFW1LexaAxGqScc+wFIarjHQwBPPJ3 LGz4IFulQw1iCSqRoh6H9g2XvECig1EBRT4/FCYZ5VMUxq57jfIBnj1OY/ajtHEqAdvL 6HOg== X-Gm-Message-State: AKaTC03ce6PBIaEFFbKRtVcFfQobA59EC81Hf/VjkYekFEtZi/d1HavTCc503S5DWCLz107O X-Received: by 10.28.216.9 with SMTP id p9mr32599914wmg.11.1480612526762; Thu, 01 Dec 2016 09:15:26 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id a13sm14261527wma.18.2016.12.01.09.15.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 09:15:26 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Peter Ujfalusi , Russell King Cc: LKML , arm-soc , Bartosz Golaszewski Subject: [PATCH 1/3] ARM: da850: fix infinite loop in clk_set_rate() Date: Thu, 1 Dec 2016 18:15:14 +0100 Message-Id: <1480612516-18853-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480612516-18853-1-git-send-email-bgolaszewski@baylibre.com> References: <1480612516-18853-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The aemif clock is added twice to the lookup table in da850.c. This breaks the children list of pll0_sysclk3 as we're using the same list links in struct clk. When calling clk_set_rate(), we get stuck in propagate_rate(). Simply add the clock once, but specify both the con_id and dev_id in the lookup entry. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da850.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.9.3 diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index e770c97..1e11ce8 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -536,8 +536,7 @@ static struct clk_lookup da850_clks[] = { CLK("da8xx_lcdc.0", "fck", &lcdc_clk), CLK("da830-mmc.0", NULL, &mmcsd0_clk), CLK("da830-mmc.1", NULL, &mmcsd1_clk), - CLK("ti-aemif", NULL, &aemif_clk), - CLK(NULL, "aemif", &aemif_clk), + CLK("ti-aemif", "aemif", &aemif_clk), CLK("ohci-da8xx", "usb11", &usb11_clk), CLK("musb-da8xx", "usb20", &usb20_clk), CLK("spi_davinci.0", NULL, &spi0_clk),