From: Andreas Noever Date: Tue, 26 Aug 2014 15:42:21 +0000 (+0200) Subject: thunderbolt: Clear hops before overwriting X-Git-Tag: fix-v3.17-io-chain-v3~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72ad366f687d45f30a82d8b6e70ce757b21b5aab;p=pandora-kernel.git thunderbolt: Clear hops before overwriting Zero hops in tb_path_activate before writing a new path. This fixes the following scenario: - Boot with a coldplugged device - Unplug device - Plug device back in - PCI hotplug fails The hotplug operation fails because our new path matches the (now defunct) path which was setup by the firmware for the coldplugged device. By writing zeros before writing our path configuration we can force thunderbolt to retrain the path. Signed-off-by: Andreas Noever Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed