thunderbolt: Improve logging when DisplayPort resource is added due to hotplug
authorGil Fine <gil.fine@linux.intel.com>
Wed, 15 Nov 2023 10:09:58 +0000 (12:09 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 14 Dec 2023 06:07:45 +0000 (08:07 +0200)
To allow us differentiate how DisplayPort resource is added to the
DisplayPort resources list make the debug log to append "hotplug" when
this was due to an actual hotplug.

Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.c

index cf1a20a33b9a9694f57d013ca17ca27daac770eb..bd211e97ee4bdfae62b073234baf3d4705aa3853 100644 (file)
@@ -1903,7 +1903,7 @@ static void tb_dp_resource_available(struct tb *tb, struct tb_port *port)
                        return;
        }
 
-       tb_port_dbg(port, "DP %s resource available\n",
+       tb_port_dbg(port, "DP %s resource available after hotplug\n",
                    tb_port_is_dpin(port) ? "IN" : "OUT");
        list_add_tail(&port->list, &tcm->dp_resources);