mirror of https://gitee.com/openkylin/linux.git
drm/nv50-/kms: assume analog display connected if load on any pin
Fixes a VGA monitor with a dodgy red (in this case) pin not being detected. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
5087f51da8
commit
4b31ebcf69
|
@ -1583,7 +1583,7 @@ nv50_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector)
|
||||||
load = 340;
|
load = 340;
|
||||||
|
|
||||||
ret = nv_exec(disp->core, NV50_DISP_DAC_LOAD + or, &load, sizeof(load));
|
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_disconnected;
|
||||||
|
|
||||||
return connector_status_connected;
|
return connector_status_connected;
|
||||||
|
|
Loading…
Reference in New Issue