From: Takashi Iwai Date: Tue, 3 Jul 2012 09:22:11 +0000 (+0200) Subject: drm: edid: Don't add inferred modes with higher resolution X-Git-Tag: v3.5-rc6~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b668ebe2fce517873b0c28dd70c10fef1d3dc2f;p=pandora-kernel.git drm: edid: Don't add inferred modes with higher resolution When a monitor EDID doesn't give the preferred bit, driver assumes that the mode with the higest resolution and rate is the preferred mode. Meanwhile the recent changes for allowing more modes in the GFT/CVT ranges give actually more modes, and some modes may be over the native size. Thus such a mode would be picked up as the preferred mode although it's no native resolution. For avoiding such a problem, this patch limits the addition of inferred modes by checking not to be greater than other modes. Also, it checks the duplicated mode entry at the same time. Reviewed-by: Adam Jackson Signed-off-by: Takashi Iwai Signed-off-by: Dave Airlie --- Reading git-diff-tree failed