From patchwork Thu Jun 7 11:07:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 137873 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1950204lji; Thu, 7 Jun 2018 04:08:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLvieixGPV6VaoUCwxVTQX8/hWFzGzlm2gHe3IFmAa5YwXUh95lue7VU4qiBNCiTj0nGhhq X-Received: by 2002:a63:6c83:: with SMTP id h125-v6mr114351pgc.46.1528369682615; Thu, 07 Jun 2018 04:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528369682; cv=none; d=google.com; s=arc-20160816; b=GNcCTXpryRzisIP/6lnkMauqurk0RjbQ5VLrsyUiHXYLx2oXtCe5KWHs9oQVDE1Zo6 0AqgF9dZtVP/0W5zyEHjI1/87Sfmf4sg3aTy+jrD1JnzNM2C7nPWlhJkUEtnoY4DoSnv gOFnES9gps3eaob1AeidII+akpkDCdqPjDJdsU/lESu1SWhYfkHzOU8IsGT+gAGPhOak iab+vhWP2EZ8uNgex18uE2g2mDKIDtBe7jTPOqLpgwJERmTiMlXWA01NiWIgGNcuNgd1 6yWcDto6t0uFRgpfXZ0386l5kmU7fvFy98smBibjOQsF3d/W2cbALCRbRXOAm/1YG1K2 ZUTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=CrvMNCB+aL8373q51L/dir84ETO0ITch314W3tBbF4w=; b=yxqDrUxfgaMU0fhY0Bl5yzqM4MGafGbNHX9cVTPctEI8rnBETxhISbMD1t1eZOXv51 k8c/N/Ob+qROVxxfJrTffkgPRezvvBSnvMcuhKucMT+6FpCrVKnP2cs5WkK+b+C7xv9L 8ujQo3hnhHncncwjMvg14j80eo9Ir3AfC7KSvYGb1tCX966/FkTuDMotNcHj2/LK+ld/ q5g17H9ZN3jAzEiAUoKvKoAtY9iLyWC/HBTknsSY84KMcTCe/CjuID8GnOp8cCtbIZA6 To1apO1IslDDLk4OQn+XIP9yRTMBpBiW6v3gdny35j65bCSEpTwWUkQ1UAZ5ll/hAjp7 O+mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=XNRPhEHC; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x15-v6si44392820pgq.442.2018.06.07.04.08.02; Thu, 07 Jun 2018 04:08:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=XNRPhEHC; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932338AbeFGLH5 (ORCPT + 3 others); Thu, 7 Jun 2018 07:07:57 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:34333 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932186AbeFGLH4 (ORCPT ); Thu, 7 Jun 2018 07:07:56 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180607110755euoutp02655fd03525615493f00872bf7790d3ca~13B87ieHR2938129381euoutp02b; Thu, 7 Jun 2018 11:07:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180607110755euoutp02655fd03525615493f00872bf7790d3ca~13B87ieHR2938129381euoutp02b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1528369675; bh=UUdeZgOyHSbxTb5Q9++vOnZf//B1UpUCn6E3F5L+f48=; h=From:To:Cc:Subject:Date:References:From; b=XNRPhEHC+N6oyxCzIaVz1meQ2fSPvzqd6qgb84EgKbCyqWAjgU2RssBNqgbqYUuUG tvvr1H1OaPsu6C9ooG8N+QSM2j416TPENLGP2qUSW3si5i7J0XZW0K8s9i0BH2kmLR iwjtM0Crxmn+MZN8El82OV1RhWl55JXgwuzwZnjg= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180607110754eucas1p17b8ad01f069d5419d0a0ae06e12c72c5~13B8hz0nG2076320763eucas1p1s; Thu, 7 Jun 2018 11:07:54 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 72.83.10409.A02191B5; Thu, 7 Jun 2018 12:07:54 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180607110754eucas1p2291258a7c53e680386e2ce22a97cf534~13B730LjP1744217442eucas1p2R; Thu, 7 Jun 2018 11:07:54 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-89-5b19120abef7 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A4.FB.04183.A02191B5; Thu, 7 Jun 2018 12:07:54 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P9Y003TM9L3VE70@eusync4.samsung.com>; Thu, 07 Jun 2018 12:07:54 +0100 (BST) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Andrzej Hajda , Bartlomiej Zolnierkiewicz Subject: [PATCH] drm/exynos: decon5433: Fix WINCONx reset value Date: Thu, 07 Jun 2018 13:07:49 +0200 Message-id: <20180607110749.507-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMIsWRmVeSWpSXmKPExsWy7djPc7pcQpLRBhNvKFrcWneO1WLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnLbjFj8ks2B3aP+93HmTz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoErY/3cDtaCKewVZ//MZG5gnMDWxcjJISFgIjFpxQpmEFtIYAWjxPsW9y5GLiD7M6PE kieH2WGKGt99ZIVILGOUWNbzhwXCaWCSePTsKNgoNgFDia63XWC2iICbRNPhmWAdzAI3GSVa PtwGSwgL2EtcXbcFbB+LgKrE6t3PwOK8AtYSP1tgbpKXWL3hADNIs4TATVaJ3X/6gBIcQI6L xLL54hA1whKvjm+BOk9G4vLkbhaI+mZGifYZs9ghnB5Gia1zdkBNtZY4fPwiK4jNLMAnMWnb dGaIobwSHW1CECUeEif23WKFBEasxLJp71gmMEosYGRYxSieWlqcm55abJyXWq5XnJhbXJqX rpecn7uJERhVp/8d/7qDcd+fpEOMAhyMSjy8DffFo4VYE8uKK3MPMUpwMCuJ8CZeEosW4k1J rKxKLcqPLyrNSS0+xCjNwaIkzhunURclJJCeWJKanZpakFoEk2Xi4JRqYJQrlzsktTFATHRd wKzYHA7bZ40Rv623SzoFeu72MIv/LtLs5TN5infJz2I/rxA+nyzme/V2jtsDJFMmpcyWOTP5 rdLH6YYxLisCk++8+65/Wety05NPdns7vM5l5a28/PHBronKh/iDVqf7fvpekXnh1bEXUgcm T/wh4XODeYnb8XtdLDcZbZVYijMSDbWYi4oTAX+pebGmAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKJMWRmVeSWpSXmKPExsVy+t/xa7pcQpLRBpsaWCxurTvHarFxxnpW iytf37NZTLo/gcVixvl9TBZrj9xlt5gx+SWbA7vH/e7jTB59W1YxenzeJBfAHMVlk5Kak1mW WqRvl8CVsX5uB2vBFPaKs39mMjcwTmDrYuTkkBAwkWh895G1i5GLQ0hgCaNEY/snFginiUli d/sBRpAqNgFDia63XWAdIgJuEk2HZ7KC2MwCNxkljk1JBLGFBewlrq7bwgxiswioSqze/Qys nlfAWuJnC8w2eYnVGw4wT2DkWsDIsIpRJLW0ODc9t9hIrzgxt7g0L10vOT93EyPQ89uO/dyy g7HrXfAhRgEORiUe3hsPxaOFWBPLiitzDzFKcDArifAmXhKLFuJNSaysSi3Kjy8qzUktPsQo zcGiJM573qAySkggPbEkNTs1tSC1CCbLxMEp1cBYbcF9ne1dpu40uaD12plFzmbffJ89Z/sT 2lmkvU938wLGxgdaH4UF1th7av6xV/j54mn3bOG55xXXbu1U2toQLHdfXTJBWtui/3na9yVr DgcdPvGUdYXR9gvtV9rrOzRW/D12TzZ7i0OeV/1n0fO/LsldzY5cfuaaYc2cdc5fljKWOou2 nQxUYinOSDTUYi4qTgQAeazVyPgBAAA= X-CMS-MailID: 20180607110754eucas1p2291258a7c53e680386e2ce22a97cf534 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180607110754eucas1p2291258a7c53e680386e2ce22a97cf534 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The only bits that should be preserved in decon_win_set_fmt() is WINCONx_ENWIN_F. All other bits depends on the selected pixel formats and are set by the mentioned function. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 92d28b5b1077..e868773ea509 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -265,7 +265,7 @@ static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, unsigned long val; val = readl(ctx->addr + DECON_WINCONx(win)); - val &= ~WINCONx_BPPMODE_MASK; + val &= WINCONx_ENWIN_F; switch (fb->format->format) { case DRM_FORMAT_XRGB1555: