diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2018-10-23 14:34:36 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-30 01:04:57 -0700 |
commit | 23a82485cfd2e893fa147dd0fd877ff783316c8f (patch) | |
tree | 9a43b79b9c4e52c4d6240d2eb601bdf1d3497a77 /include/usb_i2c.h | |
parent | 2e4640f4a64078376523adbd0572463e4ab81c42 (diff) | |
download | chrome-ec-23a82485cfd2e893fa147dd0fd877ff783316c8f.tar.gz |
usb_i2c: add error value for unsupported command
The recently added ability to allow device specific commands over i2c
does not allow to return an error value indicating that a command is
not supported. This patch adds a value for it.
BRANCH=none
BUG=b:75976718
TEST=verified when compiled with the rest of the patches enabling
iteflash over Cr50.
Change-Id: I9ce6c981c5325026f334d58c56a924e490ca55e4
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1305114
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'include/usb_i2c.h')
-rw-r--r-- | include/usb_i2c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_i2c.h b/include/usb_i2c.h index b808de9e49..2f09076eb9 100644 --- a/include/usb_i2c.h +++ b/include/usb_i2c.h @@ -107,6 +107,7 @@ enum usb_i2c_error { USB_I2C_PORT_INVALID = 0x0005, USB_I2C_DISABLED = 0x0006, USB_I2C_MISSING_HANDLER = 0x0007, + USB_I2C_UNSUPPORTED_COMMAND = 0x0008, USB_I2C_UNKNOWN_ERROR = 0x8000, }; |