From patchwork Tue Mar 19 09:59:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas C Sajjan X-Patchwork-Id: 2300331 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id D3E64DFB79 for ; Tue, 19 Mar 2013 12:32:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EAFAFE64C2 for ; Tue, 19 Mar 2013 05:32:36 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-da0-f47.google.com (mail-da0-f47.google.com [209.85.210.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 57E8CE5C59 for ; Tue, 19 Mar 2013 03:00:20 -0700 (PDT) Received: by mail-da0-f47.google.com with SMTP id s35so218622dak.20 for ; Tue, 19 Mar 2013 03:00:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=v4y0MtyEM+mHcNj5/tCVZF84h1HuJYrm5tjMB6r5k8I=; b=R1XPD9xfETmnp4kD0+Q2m9h0xGmp3j25mi+0TNA2A9ZOeZSlbem4vKVZFnuVXe0khW 0xQ83QH++qdU7HV8tn21orqpeR/FZ9d4Fh8IoZdKMAf83i2m6MEIU4AKXzpG/os12ZD3 EbjoQYgxA7OzpROOeSPZyKqPNXogCo9F7wUoobn7hDtH1wp4fR05yxFhfZdJfp3k3Dop BX4eVg+fxv1fAd50DUE3MvpeZwyiJtmHByiVyZs5J3nf9Ean84GGKtBVE5GGJxWyaF7F nE1NgzTZh4KR2MmaQsUHKCbKeR2b1Rp7UmyiAV/nTeS7Ap582XjX6WnUhckmmIHJ6soA hovQ== X-Received: by 10.68.239.194 with SMTP id vu2mr2030514pbc.147.1363687220210; Tue, 19 Mar 2013 03:00:20 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id i10sm23719663pbd.1.2013.03.19.03.00.15 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Mar 2013 03:00:19 -0700 (PDT) From: Vikas Sajjan To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: enable FIMD clocks Date: Tue, 19 Mar 2013 15:29:53 +0530 Message-Id: <1363687193-30893-1-git-send-email-vikas.sajjan@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQntkBXEg85bEF3QMWzoXw3FiKEoV6K+WCn9zK3dh0PavJqdDk+P7m1IV6dpRicaKTrg0Vlz X-Mailman-Approved-At: Tue, 19 Mar 2013 05:31:36 -0700 Cc: kgene.kim@samsung.com, joshi@samsung.com, linux-samsung-soc@vger.kernel.org, linaro-kernel@lists.linaro.org, linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org While migrating to common clock framework (CCF), found that the FIMD clocks were pulled down by the CCF. If CCF finds any clock(s) which has NOT been claimed by any of the drivers, then such clock(s) are PULLed low by CCF. By calling clk_prepare_enable() for FIMD clocks fixes the issue. Signed-off-by: Vikas Sajjan --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 9537761..d93dd8a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -934,6 +934,9 @@ static int fimd_probe(struct platform_device *pdev) return ret; } + clk_prepare_enable(ctx->lcd_clk); + clk_prepare_enable(ctx->bus_clk); + ctx->vidcon0 = pdata->vidcon0; ctx->vidcon1 = pdata->vidcon1; ctx->default_win = pdata->default_win;