From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85570C7618B for ; Thu, 25 Jul 2019 14:37:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59AC5218EA for ; Thu, 25 Jul 2019 14:37:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LWE3m0uq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59AC5218EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ofiSBaWuyOr2GHSdEYemJoGw5b+XGpGB+DpfNmnlyR0=; b=LWE3m0uqjacStX nM5uTQRMkWzig9u+SNbmA150QkOkgOrysRc+uZUa6kewBcSUEh2L6siACh2BsKxDMXHEBYOQaryiD iXC1csdNZOK6JwUo4UUG0b8FLJHR0lfBt9JfolGt8Za/wRJ7fk6W/O1LsotivEHsNLmI+CHWjJd66 kehCvmKUAC/1nDBPjNZgutAPLSKmaHlzBc/s1qQB2fdfzW0unoV1oHoKz33PZ97mD72sH5RicPn22 FPtsrX3gn2zqg64jbt7Hbf0F7CP3F8pXAY5OBbNfUqeVC+Bj4KRu075c30LGLDuihFJ4Wodmfr5Dh l5gNVnEvQGw6M0G5sS9A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqes1-00014X-FT; Thu, 25 Jul 2019 14:37:25 +0000 Received: from smtprelay0037.hostedemail.com ([216.40.44.37] helo=smtprelay.hostedemail.com) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqerx-00013X-US for linux-arm-kernel@lists.infradead.org; Thu, 25 Jul 2019 14:37:23 +0000 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 68FA18047AB9; Thu, 25 Jul 2019 14:37:18 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: mist49_3f8efb7ea8d42 X-Filterd-Recvd-Size: 3266 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Thu, 25 Jul 2019 14:37:16 +0000 (UTC) Message-ID: Subject: Re: [PATCH 03/12] drm: aspeed_gfx: Fix misuse of GENMASK macro From: Joe Perches To: Joel Stanley Date: Thu, 25 Jul 2019 07:37:14 -0700 In-Reply-To: References: <2a0c5ef5c7e20b190156908991e4c964a501d80a.camel@perches.com> <4f6709f8-381f-415c-8569-798b074b66c5@www.fastmail.com> <4e5bc8d61436024a30a8fb6a1516e29e23a75ede.camel@perches.com> User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190725_073722_115295_A37EB61D X-CRM114-Status: GOOD ( 16.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aspeed@lists.ozlabs.org, Andrew Jeffery , Linux Kernel Mailing List , dri-devel@lists.freedesktop.org, David Airlie , Daniel Vetter , Andrew Morton , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 2019-07-25 at 02:52 +0000, Joel Stanley wrote: > On Thu, 25 Jul 2019 at 01:18, Joe Perches wrote: > > On Thu, 2019-07-25 at 10:40 +0930, Andrew Jeffery wrote: > > > On Thu, 25 Jul 2019, at 02:46, Joe Perches wrote: > > > > On Tue, 2019-07-09 at 22:04 -0700, Joe Perches wrote: > > > > > Arguments are supposed to be ordered high then low. > > > > > > > > > > Signed-off-by: Joe Perches > > > > > --- > > > > > drivers/gpu/drm/aspeed/aspeed_gfx.h | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx.h b/drivers/gpu/drm/aspeed/aspeed_gfx.h > > > > > index a10358bb61ec..095ea03e5833 100644 > > > > > --- a/drivers/gpu/drm/aspeed/aspeed_gfx.h > > > > > +++ b/drivers/gpu/drm/aspeed/aspeed_gfx.h > > > > > @@ -74,7 +74,7 @@ int aspeed_gfx_create_output(struct drm_device *drm); > > > > > /* CTRL2 */ > > > > > #define CRT_CTRL_DAC_EN BIT(0) > > > > > #define CRT_CTRL_VBLANK_LINE(x) (((x) << 20) & CRT_CTRL_VBLANK_LINE_MASK) > > > > > -#define CRT_CTRL_VBLANK_LINE_MASK GENMASK(20, 31) > > > > > +#define CRT_CTRL_VBLANK_LINE_MASK GENMASK(31, 20) > > > > > > Reviewed-by: Andrew Jeffery > > > > This hardly needs a review, it needs to be applied. > > There's a nominal git tree for aspeed here: > > > > T: git git://git.kernel.org/pub/scm/linux/kernel/git/joel/aspeed.git > > > > But who's going to do apply this? > > This is a DRM patch, so it goes through the DRM tree. I am a > co-maintainer there and can apply it once I remember how to drive the > tools. > > (FYI, this macro is not used by the current driver). Then perhaps CRT_CTRL_VBLANK and _MASK defines should be removed instead. cheers, Joe _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel