]> Git Repo - J-linux.git/commitdiff
drm: Remove slot checks in dp mst topology during commit
authorBhawanpreet Lakha <[email protected]>
Mon, 25 Oct 2021 22:38:21 +0000 (18:38 -0400)
committerLyude Paul <[email protected]>
Tue, 26 Oct 2021 01:21:07 +0000 (21:21 -0400)
This code path is used during commit, and we dont expect things to fail
during the commit stage, so remove this.

Signed-off-by: Bhawanpreet Lakha <[email protected]>
Reviewed-by: Lyude Paul <[email protected]>
Signed-off-by: Lyude Paul <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_dp_mst_topology.c

index 86d13d6bc46313411c781aba075d35786a291863..04ed34a7f71c443ba6f3a515e22874b31d6dedb9 100644 (file)
@@ -4334,10 +4334,6 @@ static int drm_dp_init_vcpi(struct drm_dp_mst_topology_mgr *mgr,
 {
        int ret;
 
-       /* max. time slots - one slot for MTP header */
-       if (slots > 63)
-               return -ENOSPC;
-
        vcpi->pbn = pbn;
        vcpi->aligned_pbn = slots * mgr->pbn_div;
        vcpi->num_slots = slots;
@@ -4540,7 +4536,7 @@ bool drm_dp_mst_allocate_vcpi(struct drm_dp_mst_topology_mgr *mgr,
 
        ret = drm_dp_init_vcpi(mgr, &port->vcpi, pbn, slots);
        if (ret) {
-               drm_dbg_kms(mgr->dev, "failed to init vcpi slots=%d max=63 ret=%d\n",
+               drm_dbg_kms(mgr->dev, "failed to init vcpi slots=%d ret=%d\n",
                            DIV_ROUND_UP(pbn, mgr->pbn_div), ret);
                drm_dp_mst_topology_put_port(port);
                goto out;
This page took 0.065003 seconds and 4 git commands to generate.