greybus: svc: fully initialize the partially initialized connection
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 24 Jul 2015 10:02:19 +0000 (15:32 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 24 Jul 2015 23:33:20 +0000 (16:33 -0700)
commit67c93ae6f544a0953d1159ffcc0dd14bea77fc53
tree7e12207b80d186498cfb5f9ba4c0c26f69e90fa6
parent3dfe8aaaeede22b0601c95cf1a4c2eadcb3851ba
greybus: svc: fully initialize the partially initialized connection

SVC hello message is received now and we should fully initialize the
partially initialized connection. This can be done by removing and
re-adding the device corresponding to the connection.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Perry Hung <perry@leaflabs.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/svc.c