lontium-lt9611: check a different register bit for HDMI sensing
authorPeter Collingbourne <pcc@google.com>
Wed, 17 Nov 2021 02:07:24 +0000 (18:07 -0800)
committerRobert Foss <robert.foss@linaro.org>
Tue, 30 Nov 2021 12:03:04 +0000 (13:03 +0100)
commit19cf41b64e3b150cf64fa01dec13f20dc86d95b2
tree9775f3294f5f457e5b1c72b9a7b07df27a3b7916
parent09717af7d13d63df141ae6e71686289989d17efd
lontium-lt9611: check a different register bit for HDMI sensing

It has been observed that with certain monitors such as the HP Z27n,
the register 0x825e reads a value of 0x79 when the HDMI cable is
connected and 0x78 when it is disconnected, i.e. bit 0 appears
to correspond to the HDMI connection status and bit 2 is never
set. Therefore, change the driver to check bit 0 instead of bit 2.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Link: https://linux-review.googlesource.com/id/I7e76411127e1ce4988a3f6d0c8ba5f1c3d880c23
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211117020724.2647769-1-pcc@google.com
drivers/gpu/drm/bridge/lontium-lt9611.c