greybus: raw: add raw greybus kernel driver
This adds a driver that implements the greybus Raw protocol as
specified.
It preserves the message boundries by only allowing a read to receive
a "full" message, and any write() call also is passed in a single
greybus request.
Totally untested, given that we have no raw firmware or gbsim code yet.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile
index 130758f..e636fe0 100644
--- a/drivers/staging/greybus/Makefile
+++ b/drivers/staging/greybus/Makefile
@@ -28,6 +28,7 @@
gb-vibrator-y := vibrator.o
gb-battery-y := battery.o
gb-loopback-y := loopback.o
+gb-raw-y := raw.o
gb-es1-y := es1.o
gb-es2-y := es2.o
@@ -36,6 +37,7 @@
obj-m += gb-vibrator.o
obj-m += gb-battery.o
obj-m += gb-loopback.o
+obj-m += gb-raw.o
obj-m += gb-es1.o
obj-m += gb-es2.o