Message ID | 42e18dd34e46bcf697bb9db11862a683da8aef9c.1439288957.git.lukas@wunner.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 159df7f..d1a6982 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -149,12 +149,18 @@ nouveau_connector_ddc_detect(struct drm_connector *connector) break; } else if (nv_encoder->i2c) { + struct i2c_adapter *proxy_ddc; int ret; vga_switcheroo_lock_ddc(dev->pdev); ret = nv_probe_i2c(nv_encoder->i2c, 0x50); vga_switcheroo_unlock_ddc(dev->pdev); if (ret) break; + proxy_ddc = vga_switcheroo_get_ddc(dev->pdev); + if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && + nv_connector->type == DCB_CONNECTOR_LVDS && + proxy_ddc && drm_probe_ddc(proxy_ddc)) + break; } }