MLK-18297 drm/bridge: it6263: Sleep between status reads in connector detect
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 14 May 2018 03:24:30 +0000 (11:24 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit8636345683a6269fb315421b68f54c3b6185128d
tree544d6c24ef3887f717b62081cc809a012d9c6f11
parent74a1c3406c042dce3761a08aa03b99c8d054c6a2
MLK-18297 drm/bridge: it6263: Sleep between status reads in connector detect

There are some issues with the HDMI connection on it6263 being slow to
come up. There is a hack there which reads the register multiple times
but it doesn't seem to be sufficient. This is particularly a problem
when inside a xen guest.

Improve this workaround by reading the status multiple times every few
5-10ms and returning connector_status_connected if any of those reads
sees HPDETECT.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 699ccad27c5476746e0b2c5da25c5a98e6ffab3f)
drivers/gpu/drm/bridge/it6263.c