thunderbolt: Scan for downstream switches
authorAndreas Noever <andreas.noever@gmail.com>
Tue, 3 Jun 2014 20:04:05 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 21:07:47 +0000 (14:07 -0700)
commit9da672a42878c58af5c50d7389dbae17bea9df38
treed85b6d930f13d03b6ec0c718da7b834dd5221e4a
parentca389f716f6140d5349583a716bc629d63b06b1f
thunderbolt: Scan for downstream switches

Add utility methods tb_port_state and tb_wait_for_port. Add
tb_scan_switch which recursively checks for downstream switches.

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h