From baa6a9d258854237e5c1ff793f0e8a5cf1add172 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 --- 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 64fbf77f852a..2472b7370533 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c @@ -1174,6 +1174,10 @@ static int mxsfb_init_fbinfo_dt(struct mxsfb_info *host) struct videomode vm; struct fb_videomode fb_vm; + /* 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