From patchwork Wed Sep 30 21:40:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 7302721 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D609FBEEA4 for ; Wed, 30 Sep 2015 21:41:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1877D204AF for ; Wed, 30 Sep 2015 21:41:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F5B420460 for ; Wed, 30 Sep 2015 21:41:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932514AbbI3VlE (ORCPT ); Wed, 30 Sep 2015 17:41:04 -0400 Received: from mail-yk0-f193.google.com ([209.85.160.193]:35346 "EHLO mail-yk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754834AbbI3VlB (ORCPT ); Wed, 30 Sep 2015 17:41:01 -0400 Received: by ykba192 with SMTP id a192so4775512ykb.2 for ; Wed, 30 Sep 2015 14:41:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=eypKOuRwW78tDXDmVbCqJCR9oumVMExQ+mnHXHKgRoc=; b=ay0IkoRQdNt6wcNKa5wUuRVKwRDOagK9yOfZzTAuy0D6vQvZ2sFBNeIN1xST17Lz5l es9gnvn5KSE4JHA6sF3Ggw3q0GbIi5C8jqZ5Tp5pyONcfPUP1vEfG3tPsQn1JQDrJwFK igybs34CE+PkYL+AuDjJBtzMvjV7jkSMWLQ+zx6FWrLLqXejnhsu1s4FkW0vuPR/+AY4 p+i9r2k/tsthfD8eKxW6nIhpo7MtrTI4aPYtPEmhR33758lWX4b7zWlCLWC9LWTfaEFm 65PEAHb18I/8/BjktvOk8/G/Mpzz9qi5rND5/Uw+PyYqzqCj6Rae1nExtltPBhrAe80d dU/w== X-Received: by 10.129.50.16 with SMTP id y16mr4855065ywy.3.1443649260547; Wed, 30 Sep 2015 14:41:00 -0700 (PDT) Received: from jade.localdomain ([187.64.235.140]) by smtp.gmail.com with ESMTPSA id u79sm1889234ywf.21.2015.09.30.14.40.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 14:40:59 -0700 (PDT) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, inki.dae@samsung.com, jy0922.shim@samsung.com, tjakobi@math.uni-bielefeld.de, Gustavo Padovan Subject: [PATCH] drm/exynos: fimd: actually disable dp clock Date: Wed, 30 Sep 2015 18:40:54 -0300 Message-Id: <1443649254-21443-1-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 From: Gustavo Padovan fimd_dp_clock_enable() was setting the always to enabled, this patch fix this to actually use the value that is set to 'val'. Reported-by: Emilio López Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 03ad549..3d1aba6 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -871,7 +871,7 @@ static void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable) return; val = enable ? DP_MIE_CLK_DP_ENABLE : DP_MIE_CLK_DISABLE; - writel(DP_MIE_CLK_DP_ENABLE, ctx->regs + DP_MIE_CLKCON); + writel(val, ctx->regs + DP_MIE_CLKCON); } static const struct exynos_drm_crtc_ops fimd_crtc_ops = {