From patchwork Tue Dec 6 10:45:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 5513 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3370A23E18 for ; Tue, 6 Dec 2011 10:49:32 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2A47EA18948 for ; Tue, 6 Dec 2011 10:49:32 +0000 (UTC) Received: by mail-ey0-f180.google.com with SMTP id c11so6379898eaa.11 for ; Tue, 06 Dec 2011 02:49:32 -0800 (PST) Received: by 10.213.114.3 with SMTP id c3mr2290842ebq.146.1323168572043; Tue, 06 Dec 2011 02:49:32 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.129.2 with SMTP id hg2cs41445bkc; Tue, 6 Dec 2011 02:49:31 -0800 (PST) Received: by 10.50.12.227 with SMTP id b3mr14647383igc.24.1323168570052; Tue, 06 Dec 2011 02:49:30 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id lw3si11280383icb.126.2011.12.06.02.49.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Dec 2011 02:49:30 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-iy0-f178.google.com with SMTP id h11so498013iae.37 for ; Tue, 06 Dec 2011 02:49:29 -0800 (PST) Received: by 10.43.43.130 with SMTP id uc2mr13835732icb.35.1323168569492; Tue, 06 Dec 2011 02:49:29 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ds5sm22761051ibb.5.2011.12.06.02.49.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Dec 2011 02:49:28 -0800 (PST) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kgene.kim@samsung.com, vinod.koul@intel.com, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 2/2] ARM: EXYNOS: Add apb_pclk clkdev entry for mdma1 Date: Tue, 6 Dec 2011 16:15:55 +0530 Message-Id: <1323168355-2764-3-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1323168355-2764-1-git-send-email-tushar.behera@linaro.org> References: <1323168355-2764-1-git-send-email-tushar.behera@linaro.org> Amba core assumes the pclk to be named as apb_pclk. During device probe, it tries to get that clock and enable that. When PM_RUNTIME is enabled, dma clock is not explicitly enabled in pl330_probe, which causes device probe to fail. Adding a clkdev entry for apb_pclk for mdma1 fixes the problem. This patch fixes following runtime error. dma-pl330 dma-pl330.2: PERIPH_ID 0x0, PCELL_ID 0x0 ! dma-pl330: probe of dma-pl330.2 failed with error -22 Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/clock.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/clock.c b/arch/arm/mach-exynos/clock.c index 28e2842..eb33a7a 100644 --- a/arch/arm/mach-exynos/clock.c +++ b/arch/arm/mach-exynos/clock.c @@ -1326,6 +1326,7 @@ static struct clk_lookup exynos4_clk_lookup[] = { CLKDEV_INIT("s3c-sdhci.3", "mmc_busclk.2", &clk_sclk_mmc3.clk), CLKDEV_INIT("dma-pl330.0", "apb_pclk", &clk_pdma0), CLKDEV_INIT("dma-pl330.1", "apb_pclk", &clk_pdma1), + CLKDEV_INIT("dma-pl330.2", "apb_pclk", &clk_mdma1), }; static int xtal_rate;