All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: fbtft: core: set smem_len before fb_deferred_io_init call
@ 2022-07-26  8:21 ` Peter Suti
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Suti @ 2022-07-26  8:21 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Peter Suti, dri-devel, linux-fbdev, linux-staging, linux-kernel

fb_deferred_io_init depends on smem_len being filled
to be able to initialize the virtual page lists since
commit 856082f021a2 ("fbdev: defio: fix the pagelist corruption")

Signed-off-by: Peter Suti <peter.suti@streamunlimited.com>
---
 drivers/staging/fbtft/fbtft-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index 9c4d797e7ae4..4137c1a51e1b 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -656,7 +656,6 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
 	fbdefio->delay =           HZ / fps;
 	fbdefio->sort_pagelist =   true;
 	fbdefio->deferred_io =     fbtft_deferred_io;
-	fb_deferred_io_init(info);
 
 	snprintf(info->fix.id, sizeof(info->fix.id), "%s", dev->driver->name);
 	info->fix.type =           FB_TYPE_PACKED_PIXELS;
@@ -667,6 +666,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
 	info->fix.line_length =    width * bpp / 8;
 	info->fix.accel =          FB_ACCEL_NONE;
 	info->fix.smem_len =       vmem_size;
+	fb_deferred_io_init(info);
 
 	info->var.rotate =         pdata->rotate;
 	info->var.xres =           width;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-07-28 13:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26  8:21 [PATCH] staging: fbtft: core: set smem_len before fb_deferred_io_init call Peter Suti
2022-07-26  8:21 ` Peter Suti
2022-07-26 16:13 ` Dan Carpenter
2022-07-26 16:13   ` Dan Carpenter
2022-07-27  7:07   ` [PATCH v2] " Peter Suti
2022-07-27  7:07     ` Peter Suti
2022-07-27  7:13     ` Greg Kroah-Hartman
2022-07-27  7:13       ` Greg Kroah-Hartman
2022-07-27  7:35       ` [PATCH v3] " Peter Suti
2022-07-27  7:35         ` Peter Suti
2022-07-28 12:49         ` Liu, Chuansheng
2022-07-28 12:49           ` Liu, Chuansheng
2022-07-28 13:39           ` Dan Carpenter
2022-07-28 13:39             ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.