mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-14 05:09:36 +02:00
drm/omapdrm: Fix console by implementing fb_dirty
[ Upstream commit632bac5054
] The framebuffer console stopped updating with commitf231af498c
("drm/fb-helper: Disconnect damage worker from update logic"). Let's fix the issue by implementing fb_dirty similar to what was done with commit039a72ce7e
("drm/i915/fbdev: Implement fb_dirty for intel custom fb helper"). Fixes:f231af498c
("drm/fb-helper: Disconnect damage worker from update logic") Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240228063540.4444-2-tony@atomide.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ec1723175a
commit
e79f933ad1
|
@ -238,8 +238,20 @@ fail:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int omap_fbdev_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip)
|
||||
{
|
||||
if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2))
|
||||
return 0;
|
||||
|
||||
if (helper->fb->funcs->dirty)
|
||||
return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct drm_fb_helper_funcs omap_fb_helper_funcs = {
|
||||
.fb_probe = omap_fbdev_create,
|
||||
.fb_dirty = omap_fbdev_dirty,
|
||||
};
|
||||
|
||||
static struct drm_fb_helper *get_fb(struct fb_info *fbi)
|
||||
|
|
Loading…
Reference in New Issue
Block a user