]> git.baikalelectronics.ru Git - kernel.git/commit
thunderbolt: Decrease control channel timeout for software connection manager
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 29 Dec 2020 11:44:57 +0000 (13:44 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Mar 2021 15:25:30 +0000 (18:25 +0300)
commit5a10ecbd59b30068380e952dacfc363699c76f1b
tree1fbc4d155592051f4a0806268942baab62b9a888
parent0befb2b20720a1d8d9a2aa7f1fdbd6d651b4fcb0
thunderbolt: Decrease control channel timeout for software connection manager

When the firmware connection manager is not proxying between the
software and the hardware we can decrease the timeout for control
packets significantly. The USB4 spec recommends 10 ms +- 1 ms but we use
slightly larger value (100 ms) which is recommendation from Intel
Thunderbolt firmware folks. When firmware connection manager is running
then we keep using the existing 5000 ms.

To implement this we move the control channel allocation to
tb_domain_alloc(), and pass the timeout from that function to the
tb_ctl_alloc(). Then make both connection manager implementations pass
the timeout when they alloc the domain structure.

While there update kernel-doc of struct tb_ctl to match the reality.

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