From patchwork Tue Oct 15 17:41:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3046951 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 15CD19F2B6 for ; Tue, 15 Oct 2013 17:45:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CFEE82043C for ; Tue, 15 Oct 2013 17:45:28 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 887A120435 for ; Tue, 15 Oct 2013 17:45:27 +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 1VW8eg-00010g-RC; Tue, 15 Oct 2013 17:43:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VW8e7-0007qw-RZ; Tue, 15 Oct 2013 17:43:03 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VW8dI-0007jG-Nm for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2013 17:42:13 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MUQ00HAT159VQC0@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2013 18:41:34 +0100 (BST) X-AuditID: cbfec7f4-b7f0a6d000007b1b-1e-525d7e4e1e5f Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 1C.07.31515.E4E7D525; Tue, 15 Oct 2013 18:41:34 +0100 (BST) Received: from amdc1227.digital.local ([106.116.147.199]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MUQ0039B155K720@eusync1.samsung.com>; Tue, 15 Oct 2013 18:41:34 +0100 (BST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 5/7] clk: samsung: exynos5250: Add missing unpopulated mux parents Date: Tue, 15 Oct 2013 19:41:19 +0200 Message-id: <1381858881-25611-6-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1381858881-25611-1-git-send-email-t.figa@samsung.com> References: <1381858881-25611-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrIJMWRmVeSWpSXmKPExsVy+t/xy7p+dbFBBtNPq1v0LrjKZnG26Q27 xabH11gtZpzfx2TxdMJFNovDb9pZLdbPeM3iwO5x59oeNo/NS+o9+rasYvT4vEkugCWKyyYl NSezLLVI3y6BK2NF8wPGgun8FdOWNDA3MO7j6WLk5JAQMJFYNe0OM4QtJnHh3nq2LkYuDiGB pYwS6+fPYYFw+pgkrnYsYwKpYhNQk/jc8IgNxBYRUJX43LaAHaSIWeALo8TTA9vYQRLCAiES 2/cuBitiASqa/X8imM0r4CRx9scpFoh1ChLLvqwFW80p4Cxx/eEksF4hoJqLhx6yTmDkXcDI sIpRNLU0uaA4KT3XUK84Mbe4NC9dLzk/dxMjJJi+7GBcfMzqEKMAB6MSD++JqNggIdbEsuLK 3EOMEhzMSiK8mtVAId6UxMqq1KL8+KLSnNTiQ4xMHJxSDYw9J1fu6zvMG5k+v+/1Pm8hxa2/ 3qRYHQ1/ssh/3oyrIe/f2LstcDy15e65/eELg8qEKoMFPp2OM9/I6DBFJW/mplj9bzo7Cg9O fzxnXnLShWezG16vfJF7fvqHaVsEI1en/1zj/m/+i1eN26SPPrgYc7jQaNncjwa91o+S12/W NmYrv2mms1T/sBJLcUaioRZzUXEiAEUKuvAEAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131015_134212_900121_A3F6C7C3 X-CRM114-Status: UNSURE ( 6.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.4 (-------) Cc: Kukjin Kim , Mike Turquette , Tomasz Figa , Kyungmin Park , Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org 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.7 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 patch updates mux parent arrays with unpopulated mux inputs, as all inputs need to be specified in parent arrays passed to clk_register_mux(), otherwise clk_set_parent() can generate out of bound accesses to the array. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- drivers/clk/samsung/clk-exynos5250.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index b3793fe..05e3a94 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -203,19 +203,27 @@ PNAME(mout_usb3_p) = { "mout_mpll_user", "mout_cpll" }; PNAME(mout_group1_p) = { "fin_pll", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy", "sclk_uhostphy", "sclk_hdmiphy", "mout_mpll_user", "mout_epll", "mout_vpll", - "mout_cpll" }; + "mout_cpll", "none", "none", + "none", "none", "none", + "none" }; PNAME(mout_audio0_p) = { "cdclk0", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy", "sclk_uhostphy", "sclk_hdmiphy", "mout_mpll_user", "mout_epll", "mout_vpll", - "mout_cpll" }; + "mout_cpll", "none", "none", + "none", "none", "none", + "none" }; PNAME(mout_audio1_p) = { "cdclk1", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy", "sclk_uhostphy", "sclk_hdmiphy", "mout_mpll_user", "mout_epll", "mout_vpll", - "mout_cpll" }; + "mout_cpll", "none", "none", + "none", "none", "none", + "none" }; PNAME(mout_audio2_p) = { "cdclk2", "fin_pll", "sclk_hdmi27m", "sclk_dptxphy", "sclk_uhostphy", "sclk_hdmiphy", "mout_mpll_user", "mout_epll", "mout_vpll", - "mout_cpll" }; + "mout_cpll", "none", "none", + "none", "none", "none", + "none" }; PNAME(mout_spdif_p) = { "sclk_audio0", "sclk_audio1", "sclk_audio2", "spdif_extclk" };