From patchwork Mon Sep 1 13:05:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 4819321 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E2496C0338 for ; Mon, 1 Sep 2014 13:06:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C84402017A for ; Mon, 1 Sep 2014 13:06:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A582320176 for ; Mon, 1 Sep 2014 13:06:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751959AbaIANGV (ORCPT ); Mon, 1 Sep 2014 09:06:21 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:25812 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbaIANGV (ORCPT ); Mon, 1 Sep 2014 09:06:21 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NB800MGS4ED7V00@mailout3.samsung.com> for linux-media@vger.kernel.org; Mon, 01 Sep 2014 22:06:13 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-88-54046f45aee6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A9.E6.04943.54F64045; Mon, 01 Sep 2014 22:06:13 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NB800FWD4DUDR90@mmp1.samsung.com>; Mon, 01 Sep 2014 22:06:13 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: Jacek Anaszewski Subject: [PATCH 4/4] s5p-jpeg: fix HUF_TBL_EN bit clearing path Date: Mon, 01 Sep 2014 15:05:52 +0200 Message-id: <1409576752-24729-4-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1409576752-24729-1-git-send-email-j.anaszewski@samsung.com> References: <1409576752-24729-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNJMWRmVeSWpSXmKPExsVy+t9jAV3XfJYQgy9vRSx6rz5ntOjZsJXV gcmjb8sqRo/Pm+QCmKK4bFJSczLLUov07RK4Mj6cvMxUsJqt4s+FFawNjJtZuxg5OSQETCT2 Tn3KBGGLSVy4t56ti5GLQ0hgEaPE33PfGSGcdiaJ3lMn2UGq2AQMJX6+eA3WISIgL/Gk9wYb iM0soC9xeu51sLiwgL3Eka/9YDaLgKrE+WvfmUFsXgEPic1v9gJt5gDapiAxZ5INSJhTwFNi 1r5rYOVCQCVL/r1insDIu4CRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcBA8k9rBuLLB 4hCjAAejEg/vg1nMIUKsiWXFlbmHGCU4mJVEeFMzWEKEeFMSK6tSi/Lji0pzUosPMUpzsCiJ 8x5otQ4UEkhPLEnNTk0tSC2CyTJxcEo1MGrnq2++ZfP9kLjE1ualgvv53Jz9uBifRKdvco+a 9qVQ8e80r2eOWx9PYHvcyNOkbRi7v3SH4I/Ofdz7inT6niSavty+veGn41tD5z8Sc221PcV4 evxn2nzRcWp+92HSZf5CnkNr3CVPb75Q4fxyS2X2Zs6kaaFiN2Rz+B6evti+mO/iFJuVpkos xRmJhlrMRcWJAN/xYdb+AQAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Use proper bitwise operator while clearing HUF_TBL_EN bit. Signed-off-by: Jacek Anaszewski --- drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c index d9ce40f..e51c078 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c @@ -182,7 +182,7 @@ void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value) writel(reg | EXYNOS4_HUF_TBL_EN, base + EXYNOS4_JPEG_CNTL_REG); else - writel(reg | ~EXYNOS4_HUF_TBL_EN, + writel(reg & ~EXYNOS4_HUF_TBL_EN, base + EXYNOS4_JPEG_CNTL_REG); }