[PATCH 08/12] thunderbolt: Scan for downstream switches

2013-11-28 Thread Andreas Noever
Add utility methods tb_port_state and tb_wait_for_port. Add tb_scan_port which checks whether a port is connected and if so allocates a downstream switch. Signed-off-by: Andreas Noever --- drivers/thunderbolt/tb.c | 160 +++ drivers/thunderbolt/tb.h |

[PATCH 08/12] thunderbolt: Scan for downstream switches

2013-11-28 Thread Andreas Noever
Add utility methods tb_port_state and tb_wait_for_port. Add tb_scan_port which checks whether a port is connected and if so allocates a downstream switch. Signed-off-by: Andreas Noever andreas.noe...@gmail.com --- drivers/thunderbolt/tb.c | 160 +++