diff mbox series

thunderbolt: Enable retry logic for intra-domain control packets

Message ID 1632469464-53954-1-git-send-email-Sanju.Mehta@amd.com (mailing list archive)
State Accepted
Commit 641cdbea7635be3a177dbdf81356ccb16f3769e3
Headers show
Series thunderbolt: Enable retry logic for intra-domain control packets | expand

Commit Message

Mehta, Sanju Sept. 24, 2021, 7:44 a.m. UTC
From: Sanjay R Mehta <sanju.mehta@amd.com>

In case of software connection manager, the response packets are lost
sometimes within the stipulated time. Hence resending the control
packets in such scenario by increasing the retry count TB_CTL_RETRIES
value.

Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/thunderbolt/ctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mika Westerberg Sept. 27, 2021, 10:49 a.m. UTC | #1
On Fri, Sep 24, 2021 at 02:44:24AM -0500, Sanjay R Mehta wrote:
> From: Sanjay R Mehta <sanju.mehta@amd.com>
> 
> In case of software connection manager, the response packets are lost
> sometimes within the stipulated time. Hence resending the control
> packets in such scenario by increasing the retry count TB_CTL_RETRIES
> value.
> 
> Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
> Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>

Applied, thanks!
diff mbox series

Patch

diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c
index 0fb5e04..4986edf 100644
--- a/drivers/thunderbolt/ctl.c
+++ b/drivers/thunderbolt/ctl.c
@@ -17,7 +17,7 @@ 
 
 
 #define TB_CTL_RX_PKG_COUNT	10
-#define TB_CTL_RETRIES		1
+#define TB_CTL_RETRIES		4
 
 /**
  * struct tb_ctl - Thunderbolt control channel