From c000827003594be386e326b2fd7d6188954e0d30 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 2 Sep 2016 17:52:43 -0700 Subject: video: fbdev: mxsfb: honor native-mode Honor the native-mode property by adding only that mode to the mode list. With that we loose the list of modes, but we currently don't make use of it anyway. Also, the mode list lacks the pixel clock polarity information since struct fb_videomode does not store this information. Signed-off-by: Stefan Agner Acked-by: Max Krummenacher (cherry picked from commit 3cb3771edb98e2ae79a887368fc042b89456da7e) --- drivers/video/fbdev/mxsfb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c index 927a85577a55..b756c969c36c 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c @@ -1416,6 +1416,10 @@ static int mxsfb_init_fbinfo_dt(struct mxsfb_info *host) INIT_LIST_HEAD(&fb_info->modelist); for (i = 0; i < timings->num_timings; i++) { + /* Only consider native mode */ + if (i != timings->native_mode) + continue; + ret = videomode_from_timings(timings, &vm, i); if (ret < 0) goto put_display_node; -- cgit v1.2.3