thunderbolt: Log which connection manager implementation is used
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 10 Nov 2020 08:02:31 +0000 (11:02 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 30 Nov 2020 11:39:23 +0000 (14:39 +0300)
This makes it easier to figure out whether the driver is using firmware
or software based connection manager implementation.

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

index 03e8681..beee6e6 100644 (file)
@@ -2302,5 +2302,7 @@ struct tb *icm_probe(struct tb_nhi *nhi)
                return NULL;
        }
 
+       tb_dbg(tb, "using firmware connection manager\n");
+
        return tb;
 }
index 214fbc9..51d5b03 100644 (file)
@@ -1534,5 +1534,7 @@ struct tb *tb_probe(struct tb_nhi *nhi)
        INIT_LIST_HEAD(&tcm->dp_resources);
        INIT_DELAYED_WORK(&tcm->remove_work, tb_remove_work);
 
+       tb_dbg(tb, "using software connection manager\n");
+
        return tb;
 }