* [PATCH] drm: aspeed: Fix GENMASK misuse
@ 2020-02-22 23:51 Ondrej Jirman
2020-02-24 0:06 ` Andrew Jeffery
0 siblings, 1 reply; 3+ messages in thread
From: Ondrej Jirman @ 2020-02-22 23:51 UTC (permalink / raw)
To: linux-kernel
Cc: Ondrej Jirman, open list:DRM DRIVER FOR ASPEED BMC GFX,
David Airlie, open list:DRM DRIVERS, Andrew Jeffery,
Joel Stanley, Daniel Vetter,
moderated list:ARM/ASPEED MACHINE SUPPORT
Arguments to GENMASK should be msb >= lsb.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm: aspeed: Fix GENMASK misuse
2020-02-22 23:51 [PATCH] drm: aspeed: Fix GENMASK misuse Ondrej Jirman
@ 2020-02-24 0:06 ` Andrew Jeffery
2020-10-09 7:47 ` Joel Stanley
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Jeffery @ 2020-02-24 0:06 UTC (permalink / raw)
To: Ondrej Jirman, linux-kernel
Cc: open list:DRM DRIVER FOR ASPEED BMC GFX, David Airlie,
open list:DRM DRIVERS, Joel Stanley, Daniel Vetter,
moderated list:ARM/ASPEED MACHINE SUPPORT
On Sun, 23 Feb 2020, at 10:21, Ondrej Jirman wrote:
> Arguments to GENMASK should be msb >= lsb.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
> ---
> 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.
I think someone's sent a patch previously, and last time it turned into a
discussion about how the macros aren't actually used and could be
removed.
Regardless:
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm: aspeed: Fix GENMASK misuse
2020-02-24 0:06 ` Andrew Jeffery
@ 2020-10-09 7:47 ` Joel Stanley
0 siblings, 0 replies; 3+ messages in thread
From: Joel Stanley @ 2020-10-09 7:47 UTC (permalink / raw)
To: Andrew Jeffery
Cc: Ondrej Jirman, open list:DRM DRIVER FOR ASPEED BMC GFX,
David Airlie, Linux Kernel Mailing List, open list:DRM DRIVERS,
Daniel Vetter, moderated list:ARM/ASPEED MACHINE SUPPORT
On Mon, 24 Feb 2020 at 00:06, Andrew Jeffery <andrew@aj.id.au> wrote:
>
>
>
> On Sun, 23 Feb 2020, at 10:21, Ondrej Jirman wrote:
> > Arguments to GENMASK should be msb >= lsb.
> >
> > Signed-off-by: Ondrej Jirman <megous@megous.com>
> > ---
> > 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.
>
> I think someone's sent a patch previously, and last time it turned into a
> discussion about how the macros aren't actually used and could be
> removed.
>
> Regardless:
>
> Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Thanks, I've applied this to drm-misc-next. Apologies for the delay.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-09 7:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-22 23:51 [PATCH] drm: aspeed: Fix GENMASK misuse Ondrej Jirman
2020-02-24 0:06 ` Andrew Jeffery
2020-10-09 7:47 ` Joel Stanley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).