thunderbolt: Set sleep bit when suspending switch
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 9 Jan 2019 15:25:43 +0000 (17:25 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Apr 2019 08:18:52 +0000 (11:18 +0300)
commit5480dfc275aa7e5f892505ce082d71635d6a22f8
treeae6ab45771a68ce73fbae4d4c7a2f7a0abbc5cac
parente879a709de0210802ba14243a168d632cb7ab527
thunderbolt: Set sleep bit when suspending switch

Thunderbolt 2 devices and beyond link controller needs to be notified
when a switch is going to be suspended by setting bit 31 in LC_SX_CTRL
register. Add this functionality to the software connection manager.

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