diff options
author | Todd Broch <tbroch@chromium.org> | 2015-01-19 22:27:30 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-20 20:56:38 +0000 |
commit | 815cb8486655ade011128c6a2948bda4324dff0f (patch) | |
tree | 37aade7c7e8312bbb3541b8996d281341af69042 /util/ectool.c | |
parent | 310b1df076bcc1c5d6d5800f0d388a1165d211e7 (diff) | |
download | chrome-ec-815cb8486655ade011128c6a2948bda4324dff0f.tar.gz |
pd: ectool: fix bug in infopddev command.
Change 94515d9e failed to set ec param port prior to sending the host command.
Signed-off-by: Todd Broch <tbroch@chromium.org>
BRANCH=samus
BUG=none
TEST=manual, with two devices with different vid:pid see correct values now.
Change-Id: I6a0b9d30905509847c9481c222fa7e3c9a0264a1
Reviewed-on: https://chromium-review.googlesource.com/241951
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'util/ectool.c')
-rw-r--r-- | util/ectool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c index 28c2258af1..2062ac7888 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -934,6 +934,7 @@ int cmd_pd_device_info(int argc, char *argv[]) return -1; } + p->port = port; r1 = (struct ec_params_usb_pd_discovery_entry *)ec_inbuf; rv = ec_command(EC_CMD_USB_PD_DISCOVERY, 0, p, sizeof(*p), ec_inbuf, ec_max_insize); |