thunderbolt: Properly disable path
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 17 Feb 2017 15:05:37 +0000 (17:05 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Apr 2019 08:18:52 +0000 (11:18 +0300)
commit4944269305df09c719f9c406c20c255f1724542a
tree6b861f90588d7ecd8659cef5ce978c1640b33abb
parent5480dfc275aa7e5f892505ce082d71635d6a22f8
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>
drivers/thunderbolt/path.c
drivers/thunderbolt/tb_regs.h