greybus: add support for the log protocol
authorJoel Porquet <porquet_joel@projectara.com>
Fri, 24 Jun 2016 21:41:36 +0000 (14:41 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 24 Jun 2016 22:46:52 +0000 (15:46 -0700)
commitc0e65d026c297c53eeb5412c31a5410317225945
tree2611d50078d937204f5e3e55041f726b96b10324
parent6f7f2ae5df786bf9ced3247fda51a0a7aeb9cd0c
greybus: add support for the log protocol

Add support for the new Log class/protocol. This protocol allows modules
to send their internal logging messages to the AP in order to make
module debugging easier.

The protocol is, for now, composed a single module-initiated request.
This request contains a message and associated length. The message is
integrated in the kernel log with dev_dbg(). In order to be displayed
with 'dmesg', the following command needs to be entered first:

$ echo "file log.c +p" > /sys/kernel/debug/dynamic_debug/control

The major portion of this file was initially written by Greg KH.

Signed-off-by: Joel Porquet <porquet_joel@projectara.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Makefile
drivers/staging/greybus/greybus_manifest.h
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/log.c [new file with mode: 0644]