Skip to content

Commit

Permalink
drm/nv50-/kms: assume analog display connected if load on any pin
Browse files Browse the repository at this point in the history
Fixes a VGA monitor with a dodgy red (in this case) pin not being
detected.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Sep 4, 2013
1 parent 5087f51 commit 4b31ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nv50_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ nv50_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector)
load = 340;

ret = nv_exec(disp->core, NV50_DISP_DAC_LOAD + or, &load, sizeof(load));
if (ret || load != 7)
if (ret || !load)
return connector_status_disconnected;

return connector_status_connected;
Expand Down

0 comments on commit 4b31ebc

Please sign in to comment.