thunderbolt: Block reads and writes if switch is unplugged
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 19 Mar 2019 15:07:37 +0000 (17:07 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Apr 2019 08:18:51 +0000 (11:18 +0300)
commit4708384f35ff6e5aac3dd70555f8765ecf9b6d56
treeb2c0279e9d6347d065b1e6bdebf8f2d8d7d94b9b
parent8f965efd215a09c20b0b5e5bb4e20009a954472e
thunderbolt: Block reads and writes if switch is unplugged

If switch is already disconnected there is no point sending it commands
and waiting for timeout. Instead in that case return error immediately.

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