Skip to content

Commit

Permalink
lontium-lt9611: check a different register bit for HDMI sensing
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://linux-review.googlesource.com/id/I7e76411127e1ce4988a3f6d0c8ba5f1c3d880c23
Reviewed-by: Vinod Koul <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
pcc authored and robertfoss committed Nov 30, 2021
1 parent 09717af commit 19cf41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/bridge/lontium-lt9611.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ lt9611_connector_detect(struct drm_connector *connector, bool force)
int connected = 0;

regmap_read(lt9611->regmap, 0x825e, &reg_val);
connected = (reg_val & BIT(2));
connected = (reg_val & BIT(0));

lt9611->status = connected ? connector_status_connected :
connector_status_disconnected;
Expand Down Expand Up @@ -892,7 +892,7 @@ static enum drm_connector_status lt9611_bridge_detect(struct drm_bridge *bridge)
int connected;

regmap_read(lt9611->regmap, 0x825e, &reg_val);
connected = reg_val & BIT(2);
connected = reg_val & BIT(0);

lt9611->status = connected ? connector_status_connected :
connector_status_disconnected;
Expand Down

0 comments on commit 19cf41b

Please sign in to comment.