From 46b20db2ce8fa40fb4e85fe206695d03365a12ca Mon Sep 17 00:00:00 2001 From: Venkata Prahlad Valluru Date: Wed, 14 Aug 2019 20:33:26 +0530 Subject: msm: mdss: fb: fix panel reconfiguration check for format change Previously output_format is not updated. Update the new output_format in panel_info. Change-Id: I8ee76a9fabb5d2a9aa93d5c14deeeef9b26ba78b Signed-off-by: Venkata Prahlad Valluru Signed-off-by: Ramendra Kumar --- drivers/video/fbdev/msm/mdss_fb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c index 58478b97b81a..31f4ef83b8b3 100644 --- a/drivers/video/fbdev/msm/mdss_fb.c +++ b/drivers/video/fbdev/msm/mdss_fb.c @@ -4075,8 +4075,10 @@ static int mdss_fb_set_par(struct fb_info *info) mfd->fbi->fix.smem_len = PAGE_ALIGN(mfd->fbi->fix.line_length * mfd->fbi->var.yres) * mfd->fb_page; - old_format = mdss_grayscale_to_mdp_format(var->grayscale); - if (!IS_ERR_VALUE(old_format)) { + old_format = mfd->panel_info->out_format; + mfd->panel_info->out_format = + mdss_grayscale_to_mdp_format(var->grayscale); + if (!IS_ERR_VALUE(mfd->panel_info->out_format)) { if (old_format != mfd->panel_info->out_format) mfd->panel_reconfig = true; } -- cgit v1.2.3