thunderbolt: Disable CL states when a DMA tunnel is established
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 24 Mar 2023 11:04:39 +0000 (13:04 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Jun 2023 09:07:24 +0000 (12:07 +0300)
commit53ba2e16957b01eb7858e3ee5a3a8187a2892f15
tree560427aa175bf95f9103d8314351818f7e271fdc
parent4a420eb1426a237aaf105c9d040644785fc2c7fa
thunderbolt: Disable CL states when a DMA tunnel is established

Tunnels between hosts should not have CL states enabled because
otherwise they might enter a low power state without the other end
noticing which causes packets to be lost. For this reason disable all
CL states upon first DMA tunnel creation. Once the last DMA tunnel is
torn down we try to re-enable them.

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