From: Mark Yao Date: Thu, 9 Feb 2017 08:38:43 +0000 (+0800) Subject: drm/panel: move hardcode timing top of mode list X-Git-Tag: firefly_0821_release~671 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e7c940dd5f1cc85934a56b56040b12f5404a023a;p=firefly-linux-kernel-4.4.55.git drm/panel: move hardcode timing top of mode list Change-Id: I76cc9ae6cfdac77e8ed0953da35b17491f5fae6c Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 76636f475df9..d542e86cbfd5 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -271,6 +271,12 @@ static int panel_simple_get_modes(struct drm_panel *panel) struct panel_simple *p = to_panel_simple(panel); int num = 0; + /* add device node plane modes */ + num += panel_simple_of_get_native_mode(p); + + /* add hard-coded panel modes */ + num += panel_simple_get_fixed_modes(p); + /* probe EDID if a DDC bus is available */ if (p->ddc) { struct edid *edid = drm_get_edid(panel->connector, p->ddc); @@ -281,12 +287,6 @@ static int panel_simple_get_modes(struct drm_panel *panel) } } - /* add hard-coded panel modes */ - num += panel_simple_get_fixed_modes(p); - - /* add device node plane modes */ - num += panel_simple_of_get_native_mode(p); - return num; }