greybus: legacy: add legacy-protocol bundle driver
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:50:59 +0000 (12:50 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:12:40 +0000 (12:12 -0800)
commit5dda7e5a484295f24ecfcba6b64da6d37dccb912
tree26040d496fb56eb285b3939677d59995f89d02a5
parent5b0327103ff0f5498af008cb7189770c1a33b67b
greybus: legacy: add legacy-protocol bundle driver

Add the first Greybus bundle driver that will be used when transitioning
from legacy Greybus protocols to bundle drivers.

The legacy-protocol driver initially binds to all current bundle classes.

In order to avoid having to update current module-loading scripts, keep
this driver internal to greybus core at least until modalias support is
added. Note that this prevents unloading any protocol drivers without
first tearing down the host device due to a circular module dependency.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Makefile
drivers/staging/greybus/bundle.c
drivers/staging/greybus/connection.c
drivers/staging/greybus/core.c
drivers/staging/greybus/interface.c
drivers/staging/greybus/legacy.c [new file with mode: 0644]
drivers/staging/greybus/legacy.h [new file with mode: 0644]