Skip to content

Commit

Permalink
thunderbolt: Disable retry logic for intra-domain control packets
Browse files Browse the repository at this point in the history
In most cases the response packet is lost because the router in question
was disconnected by the user. Resending the control packet in that case
just adds unnecessary delays, so disable that for intra-domain control
packets. For inter-domain (XDomain) packets we continue retrying.

This also aligns the driver better what the Intel connection manager
firmware is doing.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
  • Loading branch information
Mika Westerberg committed Mar 18, 2021
1 parent 3382665 commit 61ec15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thunderbolt/ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


#define TB_CTL_RX_PKG_COUNT 10
#define TB_CTL_RETRIES 4
#define TB_CTL_RETRIES 1

/**
* struct tb_ctl - Thunderbolt control channel
Expand Down

0 comments on commit 61ec15e

Please sign in to comment.