Skip to content

Commit c3d5300

Browse files
aborzeszwesteri
authored andcommitted
thunderbolt: Fix typos in tunnel.c
Fix typos in tunnel.c. No functional changes. Signed-off-by: Alan Borzeszkowski <alan.borzeszkowski@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
1 parent 5d463af commit c3d5300

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/thunderbolt/tunnel.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static int tb_pci_set_ext_encapsulation(struct tb_tunnel *tunnel, bool enable)
301301
struct tb_port *port = tb_upstream_port(tunnel->dst_port->sw);
302302
int ret;
303303

304-
/* Only supported of both routers are at least USB4 v2 */
304+
/* Only supported if both routers are at least USB4 v2 */
305305
if ((usb4_switch_version(tunnel->src_port->sw) < 2) ||
306306
(usb4_switch_version(tunnel->dst_port->sw) < 2))
307307
return 0;
@@ -1170,8 +1170,8 @@ static int tb_dp_bandwidth_mode_maximum_bandwidth(struct tb_tunnel *tunnel,
11701170

11711171
/*
11721172
* DP IN adapter DP_LOCAL_CAP gets updated to the lowest AUX
1173-
* read parameter values so this so we can use this to determine
1174-
* the maximum possible bandwidth over this link.
1173+
* read parameter values so we can use this to determine the
1174+
* maximum possible bandwidth over this link.
11751175
*
11761176
* See USB4 v2 spec 1.0 10.4.4.5.
11771177
*/
@@ -1783,8 +1783,8 @@ static int tb_dma_init_rx_path(struct tb_path *path, unsigned int credits)
17831783

17841784
/*
17851785
* First lane adapter is the one connected to the remote host.
1786-
* We don't tunnel other traffic over this link so can use all
1787-
* the credits (except the ones reserved for control traffic).
1786+
* We don't tunnel other traffic over this link so we can use
1787+
* all the credits (except the ones reserved for control traffic).
17881788
*/
17891789
hop = &path->hops[0];
17901790
tmp = min(tb_usable_credits(hop->in_port), credits);
@@ -2044,7 +2044,7 @@ static int tb_usb3_consumed_bandwidth(struct tb_tunnel *tunnel,
20442044

20452045
/*
20462046
* PCIe tunneling, if enabled, affects the USB3 bandwidth so
2047-
* take that it into account here.
2047+
* take that into account here.
20482048
*/
20492049
*consumed_up = tunnel->allocated_up *
20502050
(TB_USB3_WEIGHT + pcie_weight) / TB_USB3_WEIGHT;
@@ -2605,7 +2605,7 @@ int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
26052605
* @tunnel: Tunnel whose unused bandwidth to release
26062606
*
26072607
* If tunnel supports dynamic bandwidth management (USB3 tunnels at the
2608-
* moment) this function makes it to release all the unused bandwidth.
2608+
* moment) this function makes it release all the unused bandwidth.
26092609
*
26102610
* Return: %0 on success, negative errno otherwise.
26112611
*/

0 commit comments

Comments
 (0)