thunderbolt: Handle hotplug events
authorAndreas Noever <andreas.noever@gmail.com>
Tue, 3 Jun 2014 20:04:06 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 21:07:47 +0000 (14:07 -0700)
commit053596d9e26c86352c4b2b372f43f2746b97de45
tree7568b6b0dc29e9030bf1d6ffd38f522d6907e980
parent9da672a42878c58af5c50d7389dbae17bea9df38
thunderbolt: Handle hotplug events

We receive a plug event callback whenever a thunderbolt device is added
or removed. This patch fills in the tb_handle_hotplug method and starts
reacting to these events by adding/removing switches from the hierarchy.

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