drm/i915: Use the first mode if there is no preferred mode in the EDID 90/22790/1 tizen_3.0.m14.2_ivi accepted/tizen/ivi/20140614.173151 submit/tizen_ivi/20140613.083848 tizen_3.0.m14.2_ivi_release
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 13 May 2014 15:07:37 +0000 (16:07 +0100)
committerJin Song <jin.kyu.song@linux.intel.com>
Thu, 12 Jun 2014 01:43:47 +0000 (18:43 -0700)
commitd6bfdfdcef0d70cbd3ca5eeec4ed13f2bf85047e
tree7e2686f67c342f0c7acf8cb0eb667abac4aae937
parent29a03559e8ad9e16b2670ea76e38e0ec92372c52
drm/i915: Use the first mode if there is no preferred mode in the EDID

This matches the algorithm used by earlier kernels when selecting the
mode for the fbcon. And only if there is no modes at all, do we fall
back to using the BIOS configuration. Seamless transition is still
preserved (from the BIOS configuration to ours) so long as the BIOS has
also chosen what we hope is the native configuration.

Change-Id: If11bc97f1d4c29e2828c152a0c40c7579051046b
Reported-by: Knut Petersen <Knut_Petersen@t-online.de>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78655
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-by: Knut Petersen <Knut_Petersen@t-online.de>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[Jani: applied Chris' "Please imagine that I wrote this correctly."]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Bug-Tizen: TC-354
Signed-off-by: Jin Song <jin.kyu.song@linux.intel.com>
drivers/gpu/drm/i915/intel_fbdev.c