summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb_regs.h
diff options
context:
space:
mode:
authorMika Westerberg2017-02-17 16:05:37 +0100
committerMika Westerberg2019-04-18 10:18:52 +0200
commit4944269305df09c719f9c406c20c255f1724542a (patch)
tree6b861f90588d7ecd8659cef5ce978c1640b33abb /drivers/thunderbolt/tb_regs.h
parentthunderbolt: Set sleep bit when suspending switch (diff)
downloadkernel-qcow2-linux-4944269305df09c719f9c406c20c255f1724542a.tar.gz
kernel-qcow2-linux-4944269305df09c719f9c406c20c255f1724542a.tar.xz
kernel-qcow2-linux-4944269305df09c719f9c406c20c255f1724542a.zip
thunderbolt: Properly disable path
We need to wait until all buffers have been drained before the path can be considered disabled. Do this for every hop in a path. This adds another bit field to struct tb_regs_hop even if we are trying to get rid of them but we can clean them up another day. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb_regs.h')
-rw-r--r--drivers/thunderbolt/tb_regs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thunderbolt/tb_regs.h b/drivers/thunderbolt/tb_regs.h
index 1ab6e0fb31c0..82ac4ec8757f 100644
--- a/drivers/thunderbolt/tb_regs.h
+++ b/drivers/thunderbolt/tb_regs.h
@@ -234,7 +234,8 @@ struct tb_regs_hop {
bool egress_fc:1;
bool ingress_shared_buffer:1;
bool egress_shared_buffer:1;
- u32 unknown3:4; /* set to zero */
+ bool pending:1;
+ u32 unknown3:3; /* set to zero */
} __packed;
/* Common link controller registers */