greybus: protocol: split binding of prototcols to connections out of init
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 23 Dec 2014 23:16:53 +0000 (15:16 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Dec 2014 05:04:02 +0000 (21:04 -0800)
commitfb69cb506c16d38de2c3b62ea4cf6e8728bd4348
treec7e86e2980862d4a235320ad34af7dbb8960f618
parentdf469a942301c9bf4d939e1139c1a435079b288a
greybus: protocol: split binding of prototcols to connections out of init

When adding a new protocol to the system, walk all bundles and try to
hook up any connections that do not have a protocol already.  This sets
the stage to allow for protocols to be loaded at any time, not just
before the device is seen in the system.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/bundle.c
drivers/staging/greybus/bundle.h
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/operation.c
drivers/staging/greybus/protocol.c