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: 9887591 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 5FD7F601EB for ; Tue, 8 Aug 2017 11:29:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FF7C27CAF for ; Tue, 8 Aug 2017 11:29:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42E0A27F9F; Tue, 8 Aug 2017 11:29:04 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B61D227CAF for ; Tue, 8 Aug 2017 11:29:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ig3QfT3wJP5sT+e3t4Nauk0uhqRypdYDuxByi5qyrNg=; b=Jrz8qRg/qjiEEeZqRyRGzDQTrr 7gXUHNwM3O4wQcLc8BxYS8/XLzJTevlb+RZZsqV6kCJI6GNf+Icfg34C5jug1WaFocifoddo+wUIJ hYYlhXdDlh1VeYgoi8pQY5K3lnsaN/15N2c6XCppW6Rm3/lmi9AVG+3ZfWiehHChV3wEBLBm9xGVi H+gtx6JIqmHTYZZyAUUej3l7ZnV1iKKuHtskoPdM1NbaXOgt9E7F1zExdzXGOIqbKo8a4uS3TZn+q 9jAa1e15a0UNbIWzfgchXBJ7YrQ+PuqiVbdLwUBme2YFGpi2KOLnh5cgdinNf7hK83DV1Tt4i4P5D QbGcY5/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1df2h3-0004DV-20; Tue, 08 Aug 2017 11:29:01 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1df2fu-00035C-QS for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2017 11:27:58 +0000 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 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+A7vFpsfXWC16NmxltZhxfh+Txdojd9ktVj+rsOi/eonNgctjx90ljB47Z91l 99i0qpPNY/OSeo8t/UBe35ZVjB6fN8kFsEdx2aSk5mSWpRbp2yVwZcz7c4+5YCdbxbWrs9kb GHewdjFyckgImEj87vvNCGGLSVy4t56ti5GLQ0hgKaNE+/u57BDOZ0aJMxMa2GE6vh25AlW1 jFHi07Q2JgingUli/YnfYFVsAsYSew92gM0VEciSOD2pkQnEZha4wiTxc70eiC0sECDxbecU sHoWAVWJZ78/MYPYvAKuEjOuz2SD2CYncfLYZLBbOQXcJD7emwF2koRAN7vE7JefgRo4gBxZ iU0HmCHqXSQmrP0NdamwxKvjW6BsGYnOjoNMEL2TGSU23PzAAuFsZ5RYe+wENDSsJQ4fv8gK cS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wSjUw 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170808_042752_220179_8ED7C21D X-CRM114-Status: GOOD ( 12.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thierry Escande , Bartlomiej Zolnierkiewicz , Mauro Carvalho Chehab , Krzysztof Kozlowski , Jacek Anaszewski , Andrzej Pietrasiewicz , Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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)