]> git.baikalelectronics.ru Git - kernel.git/commit
thunderbolt: Clear hops before overwriting
authorAndreas Noever <andreas.noever@gmail.com>
Tue, 26 Aug 2014 15:42:21 +0000 (17:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Aug 2014 21:54:48 +0000 (14:54 -0700)
commit71962eeca4969aa527bfb4b0705014b10002d282
tree76d191e82bc3cadf548bc9338214fd7274b95345
parent919a406d80ef26666b7e79372d184c40e5c08439
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 <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/path.c