drivers/misc: Aspeed LPC snoop output using misc chardev
authorRobert Lippert <rlippert@google.com>
Fri, 6 Jul 2018 18:25:32 +0000 (11:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2018 11:30:47 +0000 (13:30 +0200)
commit3772e5da445420543b25825ac2b5971f3743f6e8
tree8386abef3013272a1e5ac78ca4a5cd36102c830b
parent7f3838fb8c03d8ef52792ac3654a0b5f79a673e5
drivers/misc: Aspeed LPC snoop output using misc chardev

Provides the data bytes snooped over the LPC snoop bus to userspace
as a (blocking) misc character device.

Bytes output from the host using LPC I/O transactions to the snooped port
can be watched or retrieved from the character device using a simple
command like this:
~#  od -w1 -A n -t x1 /dev/aspeed-lpc-snoop0
 10
 de
 ad
 c0
 ff
 ee

Signed-off-by: Robert Lippert <rlippert@google.com>
Signed-off-by: Patrick Venture <venture@google.com>
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/aspeed-lpc-snoop.c