diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2017-02-17 16:05:37 +0100 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-04-18 10:18:52 +0200 |
commit | 4944269305df09c719f9c406c20c255f1724542a (patch) | |
tree | 6b861f90588d7ecd8659cef5ce978c1640b33abb /drivers/thunderbolt/tb_regs.h | |
parent | thunderbolt: Set sleep bit when suspending switch (diff) | |
download | linux-4944269305df09c719f9c406c20c255f1724542a.tar.xz 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.h | 3 |
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 */ |