]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/dp_mst: Add missing drm parameters to recently added call to drm_dbg_kms()
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 16 Jun 2021 19:44:15 +0000 (12:44 -0700)
committerLyude Paul <lyude@redhat.com>
Wed, 16 Jun 2021 19:53:15 +0000 (15:53 -0400)
Commit 3769e4c0af5b ("drm/dp_mst: Avoid to mess up payload table by
ports in stale topology") added to calls to drm_dbg_kms() but it
missed the first parameter, the drm device breaking the build.

Fixes: 3769e4c0af5b ("drm/dp_mst: Avoid to mess up payload table by ports in stale topology")
Cc: Wayne Lin <Wayne.Lin@amd.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Cc: stable@vger.kernel.org
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210616194415.36926-1-jose.souza@intel.com
drivers/gpu/drm/drm_dp_mst_topology.c

index 9ac148efd9e434d66f02c700bd193ba7508fd24a..ad0795afc21cf1e9bd0df64ad27f948858c73f29 100644 (file)
@@ -3389,7 +3389,9 @@ int drm_dp_update_payload_part1(struct drm_dp_mst_topology_mgr *mgr)
                        mutex_unlock(&mgr->lock);
 
                        if (skip) {
-                               drm_dbg_kms("Virtual channel %d is not in current topology\n", i);
+                               drm_dbg_kms(mgr->dev,
+                                           "Virtual channel %d is not in current topology\n",
+                                           i);
                                continue;
                        }
                        /* Validated ports don't matter if we're releasing
@@ -3404,7 +3406,8 @@ int drm_dp_update_payload_part1(struct drm_dp_mst_topology_mgr *mgr)
                                                payload->start_slot = req_payload.start_slot;
                                                continue;
                                        } else {
-                                               drm_dbg_kms("Fail:set payload to invalid sink");
+                                               drm_dbg_kms(mgr->dev,
+                                                           "Fail:set payload to invalid sink");
                                                mutex_unlock(&mgr->payload_lock);
                                                return -EINVAL;
                                        }