diff options
author | Xinliang Liu <xinliang.liu@linaro.org> | 2015-11-05 15:33:01 +0800 |
---|---|---|
committer | Guodong Xu <guodong.xu@linaro.org> | 2017-05-24 17:31:58 +0800 |
commit | b37e2d47399551567ec91c60fa5f140a9b08d560 (patch) | |
tree | 025242390eaa9c84a68e69eec3e5b122d0b72af3 | |
parent | 3ed370d3a1cd7d8d7cbc2f690d4cfdb4e11bbd28 (diff) |
drm/i2c: adv7511: Add some wait time after power on when do detect
When enable hotplug detect interrupt, it can't always read EDID data
properly althoug we have waited for the EDID ready interrupt.
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
-rw-r--r-- | drivers/gpu/drm/i2c/adv7511.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c index 4b8830affc10..ce31ca848473 100644 --- a/drivers/gpu/drm/i2c/adv7511.c +++ b/drivers/gpu/drm/i2c/adv7511.c @@ -657,6 +657,8 @@ static int adv7511_get_modes(struct adv7511 *adv7511, regmap_update_bits(adv7511->regmap, ADV7511_REG_POWER, ADV7511_POWER_POWER_DOWN, 0); adv7511->current_edid_segment = -1; + /* wait some time for edid is ready */ + msleep(200); } edid = drm_do_get_edid(connector, adv7511_get_edid_block, adv7511); |