From: Anatolij Gustschin Date: Sat, 25 Jan 2020 22:44:56 +0000 (+0100) Subject: video: mxsfb: call remove() when booting OS X-Git-Tag: v2020.10~371^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8382b1019283d2c1e9ba09cf0a10205deaf32fe1;p=platform%2Fkernel%2Fu-boot.git video: mxsfb: call remove() when booting OS Add DM_FLAG_OS_PREPARE flag to ensure that the driver's remove() callback is invoked before booting the kernel. This is required to stop the LCDIF controller. This was the behaviour with old driver without DM_VIDEO support. Without stopping the LCDIF we sometimes observe incorrect Linux logo position. Fixes: ae0760584b38 ("imx: mx6ul_14x14_evk: convert to DM_VIDEO") Signed-off-by: Anatolij Gustschin Reported-by: Fabio Estevam Reviewed-by: Fabio Estevam --- diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index c529810..c097682 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -429,6 +429,6 @@ U_BOOT_DRIVER(mxs_video) = { .bind = mxs_video_bind, .probe = mxs_video_probe, .remove = mxs_video_remove, - .flags = DM_FLAG_PRE_RELOC, + .flags = DM_FLAG_PRE_RELOC | DM_FLAG_OS_PREPARE, }; #endif /* ifndef CONFIG_DM_VIDEO */