diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2022-05-05 13:59:21 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-01-17 11:36:49 +0200 |
commit | 2426fdf77afb4d78316585531a4069905a5accc7 (patch) | |
tree | 42b336dd34e866e95fc1b3a2f77f73eacfad0e7f /drivers/thunderbolt | |
parent | b0ef48fc95cc2ce042fd5ad85d193e8a57502094 (diff) | |
download | linux-2426fdf77afb4d78316585531a4069905a5accc7.tar.gz linux-2426fdf77afb4d78316585531a4069905a5accc7.tar.bz2 linux-2426fdf77afb4d78316585531a4069905a5accc7.zip |
thunderbolt: Improve debug logging in tb_available_bandwidth()
This makes it easier to see what is going on when bandwidth is being
allocated for tunneling.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r-- | drivers/thunderbolt/tb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c index 3a541ebc7e3d..de7a2ba9d458 100644 --- a/drivers/thunderbolt/tb.c +++ b/drivers/thunderbolt/tb.c @@ -350,7 +350,9 @@ static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, struct tb_tunnel *tunnel; struct tb_port *port; - tb_port_dbg(dst_port, "calculating available bandwidth\n"); + tb_dbg(tb, "calculating available bandwidth between %llx:%u <-> %llx:%u\n", + tb_route(src_port->sw), src_port->port, tb_route(dst_port->sw), + dst_port->port); tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); if (tunnel) { @@ -387,7 +389,8 @@ static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, up_bw -= up_bw / 10; down_bw = up_bw; - tb_port_dbg(port, "link total bandwidth %d Mb/s\n", up_bw); + tb_port_dbg(port, "link total bandwidth %d/%d Mb/s\n", up_bw, + down_bw); /* * Find all DP tunnels that cross the port and reduce |