Randall Spangler
9df26ce0f2
cr50: Refactor tracking vendor command origin
...
Added flags parameter to extension_route_command(). The caller now
specifies whether the command comes from the USB interface or the AP.
Moved USB-specific shuffling of response to embed result code into
usb_upgrade.c, so extension_route_command() can be more generic.
No change to permissions/behavior for existing commands.
ccd_command_wrapper() still sends vendor commands as if they come from
the AP. That's fixed in the next CL.
Reduces code size by 128 bytes
BUG=b:79983505
BRANCH=cr50
TEST=manual
Build with DEBUG_EXTENSION defined, to turn on printing each command
'ccd lock' comes from AP and works
From host, 'gscutil -I' comes from USB and fails
From AP, 'gscutil -t -I' comes from AP and works
Change-Id: I7136bb54073de9c5951a174c308151b1871c56f3
Signed-off-by: Randall Spangler <rspangler@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/1068101
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org >
2018-05-22 21:57:12 -07:00
..
2018-05-07 20:45:54 -07:00
2018-05-11 12:10:44 -07:00
2016-08-24 16:30:10 +00:00
2017-12-28 14:50:29 -08:00
2018-04-03 18:47:12 -07:00
2018-01-18 05:09:37 -08:00
2017-09-12 16:17:03 -07:00
2018-04-10 19:13:11 -07:00
2016-08-11 14:46:33 -07:00
2016-08-24 16:30:10 +00:00
2016-11-16 19:04:31 -08:00
2018-05-22 21:56:40 -07:00
2018-04-03 18:47:12 -07:00
2016-04-18 17:32:40 -07:00
2018-05-04 03:02:49 -07:00
2018-05-18 20:08:18 -07:00
2018-05-16 05:08:36 -07:00
2017-11-01 16:47:21 -07:00
2017-10-19 12:56:42 -07:00
2018-05-21 18:19:24 -07:00
2017-02-10 19:02:55 -08:00
2016-08-24 16:30:10 +00:00
2018-04-03 18:47:12 -07:00
2015-05-19 02:46:27 +00:00
2016-10-01 03:13:43 +00:00
2018-05-18 10:05:13 -07:00
2016-03-18 22:16:53 -07:00
2018-02-23 23:13:01 -08:00
2017-11-16 23:32:11 -08:00
2017-07-03 21:44:34 -07:00
2017-07-03 21:44:34 -07:00
2017-06-30 03:08:42 -07:00
2017-08-08 17:34:09 -07:00
2017-02-14 14:50:36 -08:00
2018-03-28 23:23:31 -07:00
2018-03-28 23:23:31 -07:00
2018-05-22 21:56:40 -07:00
2015-07-17 03:17:50 +00:00
2018-01-02 15:48:20 -08:00
2017-08-02 15:02:34 -07:00
2018-05-22 21:57:12 -07:00
2016-09-02 07:11:33 -07:00
2018-03-06 09:59:21 -08:00
2017-07-13 19:45:57 -07:00
2017-07-13 19:45:57 -07:00
2018-04-05 15:20:43 -07:00
2018-01-10 12:58:55 -08:00
2018-05-16 12:41:30 -07:00
2016-11-15 17:41:53 -08:00
2016-08-31 17:20:26 +00:00
2017-12-28 12:35:08 -08:00
2018-02-02 10:17:30 -08:00
2016-08-24 16:30:10 +00:00
2017-08-08 14:56:13 -07:00
2018-05-22 21:56:40 -07:00
2018-05-22 21:56:40 -07:00
2018-05-16 16:42:57 -07:00
2017-04-26 13:37:04 -07:00
2016-08-24 16:30:10 +00:00
2017-11-07 17:52:15 -08:00
2016-04-18 17:32:40 -07:00
2017-05-18 18:07:29 -07:00
2018-05-07 20:45:54 -07:00
2018-05-11 12:10:44 -07:00
2017-11-21 18:53:35 -08:00
2018-05-16 22:49:42 -07:00
2013-03-22 11:24:29 -07:00
2017-09-11 11:14:24 -07:00
2018-01-31 18:01:04 -08:00
2017-11-28 15:44:19 -08:00
2018-02-15 21:43:53 -08:00
2016-03-02 13:39:47 -08:00
2018-02-08 06:57:51 -08:00
2016-08-24 16:30:10 +00:00
2015-10-13 05:28:54 -07:00
2018-05-22 21:56:40 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2017-06-19 15:33:09 -07:00
2016-10-01 00:02:01 -07:00
2018-05-16 16:43:03 -07:00
2018-05-09 14:40:07 -07:00
2018-05-22 21:56:40 -07:00
2017-06-02 10:38:57 -07:00
2018-05-07 20:45:54 -07:00
2017-02-23 01:19:07 -08:00
2013-08-02 18:22:57 -07:00
2017-11-30 11:48:57 -08:00
2017-08-02 15:02:34 -07:00
2018-01-12 03:27:08 -08:00
2018-04-27 12:22:26 -07:00
2017-10-31 13:04:59 -07:00
2018-04-27 12:22:41 -07:00
2016-08-24 16:30:10 +00:00
2018-03-20 19:30:06 -07:00
2017-01-03 15:13:58 -08:00
2018-05-11 12:10:44 -07:00
2016-09-08 17:57:51 -07:00
2017-12-18 20:32:58 -08:00
2015-07-15 21:57:36 +00:00
2018-04-05 22:12:13 -07:00
2017-06-14 01:19:31 -07:00
2016-11-10 21:28:28 -08:00
2017-09-26 18:24:07 -07:00
2018-05-07 20:45:54 -07:00
2014-05-17 20:14:17 +00:00
2017-09-11 04:42:59 -07:00
2016-08-31 17:20:26 +00:00
2018-03-01 12:39:05 -08:00
2016-03-21 16:35:33 -07:00
2016-08-24 16:30:10 +00:00
2017-12-28 14:50:32 -08:00
2018-05-18 20:08:16 -07:00
2017-02-09 05:04:56 +00:00
2017-05-09 23:20:07 -07:00
2018-05-18 20:08:43 -07:00
2018-05-16 22:49:42 -07:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2017-11-06 13:48:38 -08:00
2016-08-24 16:30:10 +00:00
2018-03-08 19:28:50 -08:00
2017-08-10 22:47:24 -07:00
2018-05-22 21:57:12 -07:00
2018-04-11 04:39:07 -07:00
2017-05-12 13:09:54 -07:00
2017-09-15 10:50:27 -07:00
2018-05-09 14:40:02 -07:00
2018-05-21 18:19:29 -07:00
2018-04-25 14:40:45 -07:00
2018-05-03 21:28:00 -07:00
2017-10-24 15:30:15 -07:00
2017-05-01 21:54:10 -07:00
2017-08-28 15:24:10 -07:00
2017-12-18 20:32:58 -08:00
2018-03-20 19:30:17 -07:00
2017-11-21 18:53:35 -08:00
2018-05-07 20:45:54 -07:00
2015-10-13 05:28:54 -07:00
2017-04-06 03:29:38 -07:00
2017-09-25 21:06:52 -07:00
2016-01-25 21:46:48 -08:00
2017-09-22 10:18:50 -07:00
2016-08-24 16:30:10 +00:00