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: 9456607 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 777FF60585 for ; Thu, 1 Dec 2016 17:17:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 645EE28521 for ; Thu, 1 Dec 2016 17:17:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5956028524; Thu, 1 Dec 2016 17:17:43 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9E2A828522 for ; Thu, 1 Dec 2016 17:17:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cCUxr-00059E-HB; Thu, 01 Dec 2016 17:16:07 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cCUxY-0004WF-Re for linux-arm-kernel@lists.infradead.org; Thu, 01 Dec 2016 17:15:50 +0000 Received: by mail-wm0-x232.google.com with SMTP id a197so305517023wmd.0 for ; Thu, 01 Dec 2016 09:15:28 -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=d9ba/RZ0VU3J/Yba9IitOKQRxv/8DrENsgv7vgeqc1QmQmOJaEDwmKwqMroQPK0t1m 3eBn3XYBJZ56ddsf4FqZ7Zmm6snJsV4IzoSRdQMPFekEz8LO2/EyvwsSm5YaJ8BxYP9p Q2u5rmKcfBsO5GC9XoqtGqGXbL2L31SJg4UIQE88WOc7Ixfn4ASvCh0YpFCbC8qrOyWY mV2qzzcb5Tz6wv/yL3qkuRosnQAYcmmkfNlwRnxcsPgJbBre8If2Mm0yWV3QbasJmuiA zyLbtibXWKmagUoKusUvvlxyftbFSFha/wN6nObDnv78xZiN/Dxj/6RtP+2kuNiUoXe3 99vg== X-Gm-Message-State: AKaTC02/siisQZLCFsHKeiwJ6BqJJJx5M1qcLtS9KoZe+aHlIpmQLgx1gofHANhTogKsFaOq 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161201_091549_186219_28E6D4A7 X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , LKML , arm-soc 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 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(-) 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),