Lyude Paul
2020-Mar-18 00:04 UTC
[Nouveau] [PATCH 1/2] drm/nouveau/connector: Fix indenting in nouveau_connector_detect()
No functional changes Signed-off-by: Lyude Paul <lyude at redhat.com> --- drivers/gpu/drm/nouveau/nouveau_connector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 9a9a7f5003d3..0d42a7e5deff 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -582,7 +582,7 @@ nouveau_connector_detect(struct drm_connector *connector, bool force) nv_connector->edid = drm_get_edid(connector, i2c); drm_connector_update_edid_property(connector, - nv_connector->edid); + nv_connector->edid); if (!nv_connector->edid) { NV_ERROR(drm, "DDC responded, but no EDID for %s\n", connector->name); @@ -635,7 +635,7 @@ nouveau_connector_detect(struct drm_connector *connector, bool force) encoder->helper_private; if (helper->detect(encoder, connector) =- connector_status_connected) { + connector_status_connected) { nouveau_connector_set_encoder(connector, nv_encoder); conn_status = connector_status_connected; goto out; -- 2.24.1
Lyude Paul
2020-Mar-18 00:04 UTC
[Nouveau] [PATCH 2/2] drm/nouveau/connector: Fix DDC error when probing force-disabled connectors
Signed-off-by: Lyude Paul <lyude at redhat.com> --- drivers/gpu/drm/nouveau/nouveau_connector.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 0d42a7e5deff..9fb00c4b9764 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -550,6 +550,9 @@ nouveau_connector_detect(struct drm_connector *connector, bool force) int ret; enum drm_connector_status conn_status = connector_status_disconnected; + if (connector->force == DRM_FORCE_OFF) + return conn_status; + /* Cleanup the previous EDID block. */ if (nv_connector->edid) { drm_connector_update_edid_property(connector, NULL); -- 2.24.1
Reasonably Related Threads
- [PATCH 1/2] drm/nouveau/connector: Fix indenting in nouveau_connector_detect()
- [PATCH] drm/nouveau: Grab runtime PM ref in nv50_mstc_detect()
- [PATCH 3/5] drm/nouveau: Fix deadlock on runtime suspend
- [PATCH v5 10/13] drm/nouveau: Use pm_runtime_get_noresume() in connector_detect()
- [PATCH v5 06/14] drm/dp_mst: Protect drm_dp_mst_port members with locking