From patchwork Wed Mar 23 13:15:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 8649851 Return-Path: X-Original-To: patchwork-dri-devel@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 EE0B5C0553 for ; Wed, 23 Mar 2016 13:16:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 317BC20398 for ; Wed, 23 Mar 2016 13:16:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AB473203B8 for ; Wed, 23 Mar 2016 13:16:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89B106E852; Wed, 23 Mar 2016 13:16:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8BEC46E3E1 for ; Wed, 23 Mar 2016 13:15:37 +0000 (UTC) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O4H00CS5U5YOC90@mailout1.w1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 23 Mar 2016 13:15:34 +0000 (GMT) X-AuditID: cbfec7f5-f792a6d000001302-3f-56f296f68f97 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 2A.59.04866.6F692F65; Wed, 23 Mar 2016 13:15:34 +0000 (GMT) Received: from amdc1061.digital.local ([106.116.147.88]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O4H00DL6U5VU620@eusync1.samsung.com>; Wed, 23 Mar 2016 13:15:34 +0000 (GMT) From: Andrzej Hajda To: Inki Dae Subject: [PATCH 6/7] drm/exynos/decon5433: reset decon on start Date: Wed, 23 Mar 2016 14:15:17 +0100 Message-id: <1458738918-32054-7-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1458738918-32054-1-git-send-email-a.hajda@samsung.com> References: <1458738918-32054-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplluLIzCtJLcpLzFFi42I5/e/4Zd1v0z6FGZw5zGdxa905VouNM9az Wlz5+p7NYtL9CSwWM87vY7JYe+QuuwObx/3u40wefVtWMXp83iQXwBzFZZOSmpNZllqkb5fA lbHk9CLmgg1sFVsn3WdsYNzL2sXIySEhYCJx7e95dghbTOLCvfVsXYxcHEICSxklPuy7yAjh NDFJfFn0hRGkik1AU+Lv5ptsILaIgLLEqn3t7CBFzAIbmSSaJ50BKxIWsJdYPvcmE4jNIqAq 8bz7LZDNwcEr4Cwx4X0ixDY5iZPHJoNdwSngIrH/+CuwmUJAJT/ubGWawMi7gJFhFaNoamly QXFSeq6RXnFibnFpXrpecn7uJkZI4Hzdwbj0mNUhRgEORiUe3oJzH8OEWBPLiitzDzFKcDAr ifBKTv0UJsSbklhZlVqUH19UmpNafIhRmoNFSZx35q73IUIC6YklqdmpqQWpRTBZJg5OqQbG nDat4yaqSctZnMw3LS1a8fXR89RUk7olD1unmxfskr267U1UkNHb5Tlnny1//dhpsuO2H9sm BYuKO06xFjjUZHtIxqr35ImgjyInF5f+dV6iFq89TWTxxNgzV7XtBV/c3r9Q+GZoY02TbP+J iA/+G9Zo7RT+2/H8uqyb3dt3B+8ktks2rla5oMRSnJFoqMVcVJwIAPd2Bv0YAgAA Cc: Andrzej Hajda , linux-samsung-soc@vger.kernel.org, Marek Szyprowski , "open list:DRM DRIVERS FOR EXYNOS" , Bartlomiej Zolnierkiewicz X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Resetting IP at starting ensures that DECON will be in known state regardless of changes by bootloader. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 7fec656..120efd8 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -400,6 +400,8 @@ static void decon_enable(struct exynos_drm_crtc *crtc) set_bit(BIT_CLKS_ENABLED, &ctx->flags); + decon_swreset(ctx); + /* if vblank was enabled status, enable it again. */ if (test_and_clear_bit(BIT_IRQS_ENABLED, &ctx->flags)) decon_enable_vblank(ctx->crtc);