Nick Crews b787bb126c platform/chrome: wilco_ec: Add support for raw commands in debugfs
Add a debugfs attribute that allows sending raw commands to the EC.
This is useful for development and debug but should not be enabled
in a production environment.

To test:
Get the EC firmware build date
First send the request command
> echo 00 f0 38 00 03 00 > raw
Then read the result. "12/21/18" is in the middle of the response
> cat raw
00 31 32 2f 32 31 2f 31 38 00 00 0f 01 00 01 00  .12/21/18.......

Get the EC firmware build date
First send the request command
> echo 00 f0 38 00 03 00 > raw
Then read the result. "12/21/18" is in the middle of the response
> cat raw
00 31 32 2f 32 31 2f 31 38 00 00 0f 01 00 01 00  .12/21/18.......

Signed-off-by: Duncan Laurie <dlaurie@google.com>
Signed-off-by: Nick Crews <ncrews@chromium.org>
[Fix off-by-one error in wilco_ec/debugfs.c]
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-02-21 21:36:21 +01:00
..
2018-10-26 16:26:32 -07:00
2018-12-25 17:41:56 -08:00
2019-01-18 06:15:28 +12:00
2019-01-05 17:57:34 -08:00
2018-11-01 08:42:21 -07:00
2018-10-25 06:50:48 -07:00
2019-01-04 13:13:48 -08:00
2018-03-26 12:13:21 -04:00
2018-12-28 14:48:06 -08:00
2018-12-18 16:13:04 +01:00
2018-12-06 10:11:40 -07:00
2018-11-26 16:56:34 +01:00
2017-12-16 22:37:12 -08:00
2018-05-08 09:16:41 -06:00