]> git.karo-electronics.de Git - karo-tx-linux.git/commit
udldrmfb: Fix EDID not working with monitors with EDID extension blocks
authorHans de Goede <hdegoede@redhat.com>
Fri, 11 Jan 2013 11:08:56 +0000 (12:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:25 +0000 (08:46 -0800)
commit513c651beebdffa05fd7f4fa0221ea18edba6ad3
tree1119101a0773a234f901eb6fa051c6a46be08c8c
parent108a565af618969ee0322b92405d6f279ac540f6
udldrmfb: Fix EDID not working with monitors with EDID extension blocks

commit c930812fe5ebe725760422c9c351d1f6fde1502d upstream.

udldrmfb only reads the main EDID block, and if that advertises extensions
the drm_edid code expects them to be present, and starts reading beyond the
buffer udldrmfb passes it.

Although it may be possible to read more EDID info with the udl we simpy don't
know how, and even if trial and error gets it working on one device, that is
no guarantee it will work on other revisions. So this patch does a simple fix
in the form of patching the EDID info to report 0 extension blocks, this
fixes udldrmfb only doing 1024x768 on monitors with EDID extension blocks.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/udl/udl_connector.c