From patchwork Tue Aug 8 11:27:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Pietrasiewicz X-Patchwork-Id: 9887573 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 003FD601EB for ; Tue, 8 Aug 2017 11:27:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E755A28776 for ; Tue, 8 Aug 2017 11:27:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC32D287A3; Tue, 8 Aug 2017 11:27:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7862428776 for ; Tue, 8 Aug 2017 11:27:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752383AbdHHL13 (ORCPT ); Tue, 8 Aug 2017 07:27:29 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46232 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752277AbdHHL1W (ORCPT ); Tue, 8 Aug 2017 07:27:22 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20170808112718euoutp0143cb4f4efef9ff74eebec045255f5c6d~Y21YXiwJ22666026660euoutp01d; Tue, 8 Aug 2017 11:27:18 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170808112717eucas1p16f5c49f2e583eb6e9689dee3240d4927~Y21XgYAwo2171821718eucas1p1o; Tue, 8 Aug 2017 11:27:17 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 14.53.12743.510A9895; Tue, 8 Aug 2017 12:27:17 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170808112716eucas1p10a5069ad7ddad2eae5b8dca4f466feee~Y21WubH471147411474eucas1p1j; Tue, 8 Aug 2017 11:27:16 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-c5-5989a015c631 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 28.41.18832.410A9895; Tue, 8 Aug 2017 12:27:16 +0100 (BST) Received: from AMDC831.digital.local ([106.116.147.122]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OUD002SM6H90300@eusync1.samsung.com>; Tue, 08 Aug 2017 12:27:16 +0100 (BST) From: Andrzej Pietrasiewicz To: linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andrzej Pietrasiewicz , Jacek Anaszewski , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Mauro Carvalho Chehab , Thierry Escande , Krzysztof Kozlowski Subject: [PATCH 4/5] media: platform: s5p-jpeg: fix number of components macro Date: Tue, 08 Aug 2017 13:27:07 +0200 Message-id: <1502191628-11958-4-git-send-email-andrzej.p@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1502191628-11958-1-git-send-email-andrzej.p@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIIsWRmVeSWpSXmKPExsWy7djPc7qiCzojDR6uFLWY9bKdxWLjjPWs Fre3bmCxOH9+A7vFpsf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KEnNKgTwjAzTg4BzgHqykb5fgljHvzz3mgp1sFdeuzmZvYNzB2sXIySEh YCLx7cgVNghbTOLCvfVANheHkMASRompl/ugnCYmia4jW9hBqtgEjCX2HuxgBLFFBLIkDs+f xQxSxCxwg0ni6MeJTCAJYQE/iSWP/oLZLAKqEs9+f2IGsXkFXCVmXJ8JtU5O4uSxyWBncAq4 SXy8N4MdYlsjo8SdRTcYJzDyLmBkWMUoklpanJueW2yoV5yYW1yal66XnJ+7iREY/tuO/dy8 g/HSxuBDjAIcjEo8vAyZHZFCrIllxZW5hxglOJiVRHj75nVGCvGmJFZWpRblxxeV5qQWH2I0 BbpqIrOUaHI+MDbzSuINTQzNLQ2NjC0szI2MlMR51S83RQoJpCeWpGanphakFsH0MXFwSjUw Svmx5+btdD88q/Udp6ZY5PnXC5XErlpF6DuxH1csd9NNTnAPqCrv5ma9ocg8bcrlPFvR/oO6 x63VU5sZL8kcFMxo6w7wDHzT1mT0TPi31urDCe3e2wvteX6qFjrMXOqe3sL7mnlKzp24Ox6q LemM2mqWKVOeXNR0DMyJXBf+XXbKBg0LGyWW4oxEQy3mouJEAD1oRFuVAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170808112716eucas1p10a5069ad7ddad2eae5b8dca4f466feee X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBQaWV0cmFzaWV3aWN6G1NSUE9MLUtlcm5lbCAo?= =?UTF-8?B?VFApG+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBUb21hc3ogUGlldHJhc2lld2ljehtTUlBPTC1L?= =?UTF-8?B?ZXJuZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2Fy?= =?UTF-8?B?ZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-CMS-RootMailID: 20170808112716eucas1p10a5069ad7ddad2eae5b8dca4f466feee X-RootMTR: 20170808112716eucas1p10a5069ad7ddad2eae5b8dca4f466feee References: <1502191352-11595-1-git-send-email-andrzej.p@samsung.com> <1502191628-11958-1-git-send-email-andrzej.p@samsung.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The value to be processed must be first masked and then shifted, not the other way round. Signed-off-by: Andrzej Pietrasiewicz --- drivers/media/platform/s5p-jpeg/jpeg-regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-regs.h b/drivers/media/platform/s5p-jpeg/jpeg-regs.h index 1870400..df790b1 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-regs.h +++ b/drivers/media/platform/s5p-jpeg/jpeg-regs.h @@ -371,7 +371,7 @@ #define EXYNOS4_NF_SHIFT 16 #define EXYNOS4_NF_MASK 0xff #define EXYNOS4_NF(x) \ - (((x) << EXYNOS4_NF_SHIFT) & EXYNOS4_NF_MASK) + (((x) & EXYNOS4_NF_MASK) << EXYNOS4_NF_SHIFT) /* JPEG quantizer table register */ #define EXYNOS4_QTBL_CONTENT(n) (0x100 + (n) * 0x40)