summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@chromium.org>2019-06-12 11:30:49 -0600
committerCommit Bot <commit-bot@chromium.org>2019-07-20 00:49:26 +0000
commit5936367096413abf294aa4584df53ec80bf8ef4c (patch)
tree22b1ef0ea7e81953d5a4f32ebc3c9520d15e5572 /common
parent1251719cc5fd3ca23ace14fe627b010e670b3cf9 (diff)
downloadchrome-ec-5936367096413abf294aa4584df53ec80bf8ef4c.tar.gz
ec_commands: Rename 'renew' to 'live' in EC_CMD_USB_PD_CHIP_INFO
Semantics of renew field in EC_CMD_USB_PD_CHIP_INFO is changing as follows: 0 -> Return hard-coded info for Vendor ID/Product ID and cached info for the Firmware Version 1 -> Return the live chip info for Vendor ID/Product ID/Firmware Version Also rename the 'renew' field to 'live' to match the new semantics. BUG=b:128820536,b:119046668 BRANCH=None TEST=make -j buildall; Boot to ChromeOS. Change-Id: Ie3dd022336b0be5c9728bb0ebabef32b7a6b5d57 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1617893 Tested-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Karthikeyan Ramasubramanian <kramasub@chromium.org> Auto-Submit: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/usb_pd_protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 2ba0401446..d4677fbefa 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -2880,7 +2880,8 @@ void pd_task(void *u)
if (!res) {
struct ec_response_pd_chip_info_v1 *info;
- if (tcpm_get_chip_info(port, 0, &info) == EC_SUCCESS) {
+ if (tcpm_get_chip_info(port, 0, &info) ==
+ EC_SUCCESS) {
CPRINTS("TCPC p%d VID:0x%x PID:0x%x DID:0x%x FWV:0x%lx",
port, info->vendor_id, info->product_id,
info->device_id, info->fw_version_number);
@@ -5569,7 +5570,7 @@ static int hc_remote_pd_chip_info(struct host_cmd_handler_args *args)
if (p->port >= CONFIG_USB_PD_PORT_COUNT)
return EC_RES_INVALID_PARAM;
- if (tcpm_get_chip_info(p->port, p->renew, &info))
+ if (tcpm_get_chip_info(p->port, p->live, &info))
return EC_RES_ERROR;
/*