From patchwork Mon Feb 5 20:09:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10201765 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 D9A376056A for ; Mon, 5 Feb 2018 20:10:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA51B2885B for ; Mon, 5 Feb 2018 20:10:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB7B528896; Mon, 5 Feb 2018 20:10:45 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 5E67B288BC for ; Mon, 5 Feb 2018 20:10:45 +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=X+mqlVYfxZ34MDliHLm+ijAngLBNryJ3o0Hksysa52E=; b=GEN330mh3PYEf/UZFetWjHoZBZ QDjamrcf9KfIkKXE61pR2wTGuYr2zXhv8GVRVJSe9pMpDqb1wrtyQqnWCe744S1ykFyZFTEBwZUQU KTCcnT0rudHWPvrZyuGGMb6eaNrOcwacci6Kuu85hT7EwTNAQCobRCFF/8hb3fdW5OFHq/08uhH3R YKcWtij7YaSiJHpPTmZo9Ddy6+y72oahLR1q7jPRJWqXQCgfYSvmmjOWpEr48S8R0m6/rYsu/C26d 7kcZ79o2EDpQwmxDT8bLpOj7SSm0RtMahwjRwd5ItXepnCIlS6YV0a2RbdPzoghTXjeSa8eelfYzN dFUCCfZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ein6C-00066Y-Av; Mon, 05 Feb 2018 20:10:44 +0000 Received: from sauhun.de ([88.99.104.3] helo=pokefinder.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ein67-000634-Ed for linux-arm-kernel@lists.infradead.org; Mon, 05 Feb 2018 20:10:41 +0000 Received: from localhost (p54B337CF.dip0.t-ipconnect.de [84.179.55.207]) by pokefinder.org (Postfix) with ESMTPSA id 260562C3245; Mon, 5 Feb 2018 21:10:24 +0100 (CET) From: Wolfram Sang To: linux-kernel@vger.kernel.org Subject: [PATCH 2/4] drm/exynos: fix comparison to bitshift when dealing with a mask Date: Mon, 5 Feb 2018 21:09:59 +0100 Message-Id: <20180205201002.23621-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180205201002.23621-1-wsa+renesas@sang-engineering.com> References: <20180205201002.23621-1-wsa+renesas@sang-engineering.com> 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: linux-arm-kernel@lists.infradead.org, Inki Dae , linux-samsung-soc@vger.kernel.org, Joonyoung Shim , David Airlie , Seung-Woo Kim , Krzysztof Kozlowski , linux-renesas-soc@vger.kernel.org, Wolfram Sang , Kyungmin Park , Kukjin Kim , dri-devel@lists.freedesktop.org, Dan Carpenter 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 Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Signed-off-by: Wolfram Sang --- Only build tested. To be applied individually per subsystem. drivers/gpu/drm/exynos/regs-fimc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/regs-fimc.h b/drivers/gpu/drm/exynos/regs-fimc.h index 30496134a3d072..d7cbe53c4c01f4 100644 --- a/drivers/gpu/drm/exynos/regs-fimc.h +++ b/drivers/gpu/drm/exynos/regs-fimc.h @@ -569,7 +569,7 @@ #define EXYNOS_CIIMGEFF_FIN_EMBOSSING (4 << 26) #define EXYNOS_CIIMGEFF_FIN_SILHOUETTE (5 << 26) #define EXYNOS_CIIMGEFF_FIN_MASK (7 << 26) -#define EXYNOS_CIIMGEFF_PAT_CBCR_MASK ((0xff < 13) | (0xff < 0)) +#define EXYNOS_CIIMGEFF_PAT_CBCR_MASK ((0xff << 13) | (0xff << 0)) /* Real input DMA size register */ #define EXYNOS_CIREAL_ISIZE_AUTOLOAD_ENABLE (1 << 31)