Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp810858ybv; Sat, 22 Feb 2020 15:53:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyelGlq5HFi56wNBYIDV0nsTJ85mIEisafjIFuRi4PDgw4uQ/b0c3qMeXMeOGJcei1qgYTO X-Received: by 2002:aca:acc4:: with SMTP id v187mr7818870oie.130.1582415630664; Sat, 22 Feb 2020 15:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582415630; cv=none; d=google.com; s=arc-20160816; b=E+LxZWA70fsLfNvU926TQ15oDpslUxgZcnn1btAebiBnygEE7du/TD6Fj0LMDsjUjo mFOYJVYOsz3VrMWCowj20kWrZo8nLFBZkbUN+G1Rtla9GR/e9JkVsYWCOIvf6tpQzb+0 jWdlynEUqZIxfvhIZCiFjsS5+NBKdt0ALVHYJMauypn3mMkVQKcRuIjDVNF/tOmIYOqE U8pgj1flbNOjEHTkpp0OwBL8agMjaisM6nKVRvuriUXGXfO4+fcngoISDqXo4EYOvBzm CrvQ8fRjJBce+3tKiR+ElP8Uhtxl1k7t0JJwyg9YFHHfv9Kbg017PrX8ph3Z+DFQmtHO kGww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SHCycjWxRlLZKULoL0MG/gtpORaPCeF4eJEcH6tXxZY=; b=x5qv3alkvekJ59RJsO2K1hoOETvs5464x8GTJwoxi0vUKGFT11R7gRV6hT1w/vuJh1 5m1lIDxMbF699Qo31ImYbtrDpfmgQL6DqzyVW8O8OptPeoWmw3siEF1fJsrgEBSpaGQ4 9FYPljslZ3OE2KXl4C/Q0FaxZiPiCl0MvYLXB6U1Mh8q/NWT8NzrxKsdKRlMN9HyceSB SSB/Fl1IKVpi19FeiLE6o9avRgGPC7VqPbmYB/lZjUAdILOkFOxE+sDPBv8oK+A6aJKI MreLb2IZlV14nKO1QdzdB6w7qiDn2LxEgadc78FZTWTwE3WY22N9hdeXKqE7be6fAS+x dSWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=NxCqPrLe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24si4148190oth.319.2020.02.22.15.53.37; Sat, 22 Feb 2020 15:53:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=NxCqPrLe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727084AbgBVXv4 (ORCPT + 99 others); Sat, 22 Feb 2020 18:51:56 -0500 Received: from vps.xff.cz ([195.181.215.36]:34404 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726865AbgBVXvz (ORCPT ); Sat, 22 Feb 2020 18:51:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582415514; bh=1rcpmynqM7XOcznUMag08uGqQJH2xF0Ib2wJScD9GqI=; h=From:To:Cc:Subject:Date:From; b=NxCqPrLepYANmyQmbImPr18oCLahsuqGsJptFoegS9suts6yf1pU9ZTLEr8mWAmX6 HjBRc9FYbdfsLeqmH/8S6pjkLvuvg30Oni/6kgIR089nqzWsx8PrXfTkvAXpBouB9v CR6Igj9KNu7iD0emEIBOwagzXelNw5Y9dFlA68Fc= From: Ondrej Jirman To: linux-kernel@vger.kernel.org Cc: Ondrej Jirman , Joel Stanley , David Airlie , Daniel Vetter , Andrew Jeffery , linux-aspeed@lists.ozlabs.org (open list:DRM DRIVER FOR ASPEED BMC GFX), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/ASPEED MACHINE SUPPORT) Subject: [PATCH] drm: aspeed: Fix GENMASK misuse Date: Sun, 23 Feb 2020 00:51:52 +0100 Message-Id: <20200222235152.242816-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arguments to GENMASK should be msb >= lsb. Signed-off-by: Ondrej Jirman --- I just grepped the whole kernel tree for GENMASK argument order issues, and this is one of the three that popped up. No testing was done. 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 a10358bb61ec4..095ea03e5833c 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) /* CRT_HORIZ0 */ #define CRT_H_TOTAL(x) (x) -- 2.25.1