1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-21 13:54:31 +00:00
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-12-11 09:57:47 -08:00
2019-01-01 15:45:48 -08:00
2018-12-28 14:57:10 -08:00
2018-12-28 16:52:18 -08:00
2018-12-28 20:54:57 -08:00
2018-12-28 16:52:18 -08:00
2019-01-02 16:35:23 -08:00
2018-12-07 22:26:38 -07:00
2018-12-18 17:50:47 +01:00
2018-12-18 17:50:47 +01:00
2018-12-28 14:48:06 -08:00
2018-12-19 10:42:08 +01:00
2018-12-28 16:55:46 -08:00
2018-12-31 11:46:59 -08:00
2018-12-28 12:11:52 -08:00
2018-12-10 09:22:34 +01:00
2018-12-25 14:52:50 -08:00
2019-01-04 13:13:48 -08:00
2019-01-04 13:13:48 -08:00
2018-12-13 09:58:57 +01:00
2019-01-05 17:57:34 -08:00
2019-01-05 17:57:34 -08:00
2019-01-07 16:38:26 +01:00
2018-12-21 11:50:02 -05:00
2019-01-18 14:05:14 -08:00
2018-12-28 12:45:04 -08:00
2018-12-10 10:17:45 +01:00
2019-01-11 18:05:40 -08:00
2018-12-22 12:15:29 +01:00