From: jsg Date: Mon, 5 Aug 2024 02:44:55 +0000 (+0000) Subject: drm/dp_mst: Fix all mstb marked as not probed after suspend/resume X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cb2f7175f2932d426dc692053512d29e023c1e2b;p=openbsd drm/dp_mst: Fix all mstb marked as not probed after suspend/resume From Wayne Lin e290feb8b749a06b93ed01d4cf66567cbdf0e85d in linux-6.6.y/6.6.44 d63d81094d208abb20fc444514b2d9ec2f4b7c4e in mainline linux --- diff --git a/sys/dev/pci/drm/display/drm_dp_mst_topology.c b/sys/dev/pci/drm/display/drm_dp_mst_topology.c index 778b59616d6..2b77d44f3f4 100644 --- a/sys/dev/pci/drm/display/drm_dp_mst_topology.c +++ b/sys/dev/pci/drm/display/drm_dp_mst_topology.c @@ -2933,7 +2933,7 @@ static int drm_dp_send_link_address(struct drm_dp_mst_topology_mgr *mgr, /* FIXME: Actually do some real error handling here */ ret = drm_dp_mst_wait_tx_reply(mstb, txmsg); - if (ret <= 0) { + if (ret < 0) { drm_err(mgr->dev, "Sending link address failed with %d\n", ret); goto out; } @@ -2985,7 +2985,7 @@ static int drm_dp_send_link_address(struct drm_dp_mst_topology_mgr *mgr, mutex_unlock(&mgr->lock); out: - if (ret <= 0) + if (ret < 0) mstb->link_address_sent = false; kfree(txmsg); return ret < 0 ? ret : changed;