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: 2299911 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2F6FD40AFD for ; Tue, 19 Mar 2013 10:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316Ab3CSKAV (ORCPT ); Tue, 19 Mar 2013 06:00:21 -0400 Received: from mail-pb0-f43.google.com ([209.85.160.43]:43625 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256Ab3CSKAU (ORCPT ); Tue, 19 Mar 2013 06:00:20 -0400 Received: by mail-pb0-f43.google.com with SMTP id md12so299957pbc.2 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=WJ2fnGn3u6GRTnzRg/5u8ICxVB5eOTJb/AD3549kczA05Sl3pfYD+iGC1hO2ReMpE+ P9E8EHnVvKkJyvzQzsBtUl7RSX5FfLwyXxkllXe4+WY/cZ0TaOBC3QvqyDCGdevrYPqd N4tmv49s1IVi1TD/XscFw1D6ECHJUQPBTPIZLknOIG89LeR+xITGjImrzYJ28aIx8Jan SkB02ajAj6myYK6qZ3sXmYm9BAsnAE904SrJ1pprKNDmSEzBOR9yZ2pPRzYKzcXCF4ru qfDsdkLOefHVUuKK7ASJdShiIVXlhUIXX3RKno0gCg4RIrR0gWjlwd3JiVPnPeYpc5un hh7A== 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 Cc: linux-media@vger.kernel.org, kgene.kim@samsung.com, joshi@samsung.com, inki.dae@samsung.com, linaro-kernel@lists.linaro.org, jy0922.shim@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.abraham@linaro.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: ALoCoQl6GAAIlXNo6+xsrW4fXy/JLPPvuJt7xp/qJ36S/Lm/UuC6eRkUpCRnLEpiv0tjTBv85VXC Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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;