Revert adv7511 mode whitelisting hack
This patch reversts the two following changes:
Commit dc0c1bea13e8 ("HACK: adv7511: Add support for 1024x600
resolution with clock = 50250").
And Commit cb930582f7aff ("HACK: adv7511: Re-add mode limiting
(this needs to go into drm driver)")
As we're pushing the mode whitelist hack into the kirin960
driver (the hikey kirin driver already has proper non-whitelist
mode validation calculations).
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I339668af78f1c86d5fc0f3f5114b9d57ab46633f
diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
index 69aefb0..9764b4d 100644
--- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
+++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
@@ -662,26 +662,8 @@
{
if (mode->clock > 165000)
return MODE_CLOCK_HIGH;
- /*
- * some work well modes which want to put in the front of the mode list.
- */
- DRM_DEBUG("Checking mode %ix%i@%i clock: %i...",
- mode->hdisplay, mode->vdisplay, drm_mode_vrefresh(mode), mode->clock);
- if ((mode->hdisplay == 1920 && mode->vdisplay == 1080 && mode->clock == 148500) ||
- (mode->hdisplay == 1280 && mode->vdisplay == 800 && mode->clock == 83496) ||
- (mode->hdisplay == 1280 && mode->vdisplay == 720 && mode->clock == 74440) ||
- (mode->hdisplay == 1280 && mode->vdisplay == 720 && mode->clock == 74250) ||
- (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 75000) ||
- (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 81833) ||
- (mode->hdisplay == 1024 && mode->vdisplay == 600 && mode->clock == 50250) ||
- (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000)) {
- mode->type |= DRM_MODE_TYPE_PREFERRED;
- DRM_DEBUG("OK\n");
- return MODE_OK;
- }
- DRM_DEBUG("BAD\n");
- return MODE_BAD;
+ return MODE_OK;
}
static void adv7511_mode_set(struct adv7511 *adv7511,